Coding practice problems
51 free coding practice problems — 44 algorithm and real-world problems in JavaScript, TypeScript or Python and 7 SQL queries — with instant feedback against fresh hidden tests on every check. Untimed, unlimited and graded on the server, like a real coding interview.
Problems cover arrays and strings, sliding windows, dynamic programming, caching, graphs and field-themed tasks from security, networking, DevOps, data and machine learning. Your solutions and progress are saved; practice never affects a verified score.
Easy problems
- First unique character
- Palindrome, ignoring punctuation
- Running total
- Longest run of ones
- Retry schedule with exponential backoff
- Mobile-money tariff lookup
- Card number checksum (Luhn)
- Undo a Caesar cipher
- Password policy violations
- Valid IPv4 address
- Normalise a MAC address
- Disks over threshold
- SLO error budget
- Keep the latest record per key
- Moving average (integer)
- Binary confusion matrix
- Jaccard similarity in basis points
- Average salary by department
- Incomplete employee profiles
Medium problems
- Product of the others
- First peak
- Can you reach the end?
- Common free meeting slots
- LRU cache with time-to-live
- Reconcile a bank statement with the ledger
- Recover a single-byte XOR key
- Subnet facts from CIDR
- chmod octal to symbolic
- Expand a cron field
- Disk usage roll-up
- Rolling-update simulation
- Z-score outliers, exactly
- One k-means iteration
- Deterministic train/test split
- k-nearest-neighbour classifier
- Index range scans
- Buffer-pool LRU simulation
- Sales by country
- Departments that didn't hire in 2024
Hard problems
- Longest palindromic substring
- Smallest covering window
- Fully justify text
- Most profitable delivery jobs
- Highest-capacity route
- Compress an IPv6 address (RFC 5952)
- Aggregate CIDR blocks
- Parse a .env file
- Consistent hashing ring
- Longest gap between orders
- Share of department payroll
- Customers behind 80% of revenue