Free coding practice in Python, JavaScript and SQL

Solve placement-style coding problems in your browser: Python, JavaScript and SQL with sample runs, hidden tests, hints and solutions. Free.

Arrays & Hashing

Counting, prefix sums and lookups with a dictionary or set.

Strings

Characters, words, anagrams and text processing.

Two Pointers & Sliding Window

Two indices moving through a list or a window that grows and shrinks.

Stacks & Queues

Brackets, next greater element, monotonic stacks and deques.

Binary Search

Halving a sorted range, or searching on the answer.

Sorting & Greedy

Sort first, then take the best choice at each step.

Recursion & Backtracking

Subsets, permutations and choices tried and undone.

Graphs & Grids

BFS, DFS, islands, shortest paths and dependencies.

Dynamic Programming

Build the answer from answers to smaller versions of the problem.

Math & Number Theory

Digits, primes, GCD and other number problems.

Patterns & Printing

Star and number patterns, the warm-up of campus coding rounds.

SQL: Filtering & Sorting

SELECT, WHERE, ORDER BY, DISTINCT and CASE.

SQL: Joins

Inner, left and self joins, and rows with no match.

SQL: Grouping & Aggregation

GROUP BY, HAVING and counting per group.

SQL: Subqueries & CTEs

Nested queries, EXISTS and WITH.

SQL: Window Functions

Ranking, running totals, LAG/LEAD and streaks.

Practise by subject

LogicWiz Exams home · All practice topics · Placement mock tests · Daily 10 challenge · Test from a job description · LogicWiz Open: free team quiz · Free interview prep