CODING TESTS

Python Coding Tests

Function problems graded by hidden tests

Complete a function, and it is graded on the visible examples and on hidden tests. Practice reading the constraints and thinking of edge cases yourself, such as the smallest and the largest values.

66 problems

Start practicing in your browser

Chapter 1: Reading the problem Size it up from the constraints and imagine the hidden tests

Chapter 2: Implementation Math problems where every condition goes into code

Chapter 3: Lists and strings Ranking, shifting, and handling characters

Chapter 4: Hashing Dictionaries and sets

Chapter 5: Stacks and queues Two structures that take things out in different orders

Chapter 6: Sorting and greedy Sort keys, neighbors after sorting, and picking the best option now

Chapter 7: Brute force Trying every case

Chapter 8: Binary search Throwing away half each time

Chapter 9: DFS and BFS Walking grids and relationships

Chapter 10: Dynamic programming Reusing earlier answers