#jagged-array
Wiki
›
Algorithms
›
02. Data Structures
›
1. Core Data Structures and Operations
›
1.1 Arrays and Dynamic Arrays
›
Jagged Array
Jagged Array A jagged array stores a collection of rows where each row can have a different length. It is usually represented as an array of arrays. You use it when the data is grouped by row, but each group may contain a different number of elements. Problem Given a jagged array $A$, support reading and writing an element at row $i$ and column $j$ where: $$ 0 \le i...