๐ WAYPOINT LESSON
Checkpoint: arrays
โญ beginnerโณ 22 min read๐ Lesson 36 of 256
Count-and-fill filtering into a right-sized new array.
trimNegatives is the two-pass pattern (count, then fill) the exam uses whenever a fixed-size array must hold an unknown number of results. The wrong solution to avoid: destroying the source while building the target.