Concept
Arrays
Ordered lists of values with index access; the base of most data-structure problems.
Part of Data structures and algorithmsArrays
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
- JavaScript Interview Questions for Freshers5 questions on Arrays
- Intermediate JavaScript Interview Questions4 questions on Arrays
- Advanced JavaScript Interview Questions3 questions on Arrays
- Top 20 JavaScript interview questions with answers: core JS, Node.js and React1 question on Arrays
- Pair with Target SumCoding problem · easy
- Search a Sorted ArrayCoding problem · easy
- Maximum Subarray SumCoding problem · medium
- Merge Overlapping IntervalsCoding problem · medium