Lists & Comprehensions in Python: interview exercises
Lists & Comprehensions in Python: 8 test-checked interview exercises (Filter and transform in one pass), each beside a worked example, with tests as you go. Free.
- Filter and transform in one pass
- Unique, ascending
- Chunk into groups
- Flatten deeply
- Rotate right by k
- Transpose with zip(*rows)
- Merge overlapping intervals
- Max sum of k consecutive
Each exercise pairs a worked example with a twin problem to solve in a real editor; the tests run the moment you do. Progress is saved in your browser, and in your account if you sign in.