learn deep. ship safe.Practice testsFollow ByteMunSubscribe

Concept

Arrays

Ordered lists of values with index access; the base of most data-structure problems.

Concept map

What to learn after Arrays

  • Destructuring and spreadSyntax to unpack values from arrays and objects, and to copy or merge them.
  • Hash mapsKey–value lookup in constant average time.
  • Sliding windowKeeping a moving range over a sequence to answer substring and subarray questions in one pass.
  • Two pointersWalking two indexes through a sequence to avoid nested loops.

Connections to other concepts

Practise Arrays

All topics