Adding a list to a set
seen = set()
seen.add((1, 2))
seen.add((1, 2))
print(len(seen))
seen.add([3, 4])What does this print?
Free coding interview prep
The videos explain the idea. This is where you practise it: a free interview sheet, a daily output puzzle, and the code from every episode.
155 problems22 patterns4 languages1 new puzzle a day
Daily Trap #2
One small snippet a day, in JavaScript or Python. Answer to see why it prints what it prints, then come back tomorrow to keep your streak alive.
All past trapsseen = set()
seen.add((1, 2))
seen.add((1, 2))
print(len(seen))
seen.add([3, 4])What does this print?
Everything is free except the store, and nothing needs an account.
Patterns in an order that builds on itself. Master one, and the next one feels familiar.
Go deeper
Every output in the workbook is verified by running it, and the casebook code ships with tests.
We'll write when something new is ready: problems, puzzles or a new guide. No spam, and you can leave any time.