Practice. Ship. Repeat.
Hand-picked problems across 6 languages — banking, e-commerce, analytics, system design. Run them right in your browser; ask AI when stuck.
Reverse a Singly Linked List
Given a linked list built from stdin, reverse it and print the new order.
0/1 Knapsack
You can carry at most W kg. Each of n items has a weight and value. Maximize total value without exceeding W.
Sum of an Array (Inventory)
You run a small shop. Given N daily sales figures, compute the total revenue for the week.
Binary Search in Sorted Array
Given a sorted array and a target, return the target's 0-based index, or -1 if absent. Must be O(log n).
N-Queens Count
Count the number of distinct placements of N queens on an N×N chessboard so none attacks another.
