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.

  1. Sum with reduce
  2. Unique, ascending
  3. Chunk into groups
  4. Count by key
  5. Top N by score
  6. Zip two arrays
  7. Flatten deeply
  8. Rotate right by k
  9. Merge overlapping intervals
  10. 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.

More TypeScript topics

All TypeScript exercises ยท Other languages and frameworks