Arrays in TypeScript: interview exercises
Arrays in TypeScript: 10 test-checked interview exercises (Sum with reduce, Unique, ascending), each beside a worked example, with tests as you go. Free.
- Sum with reduce
- Unique, ascending
- Chunk into groups
- Count by key
- Top N by score
- Zip two arrays
- Flatten deeply
- Rotate right by k
- 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.