| Topic / Pattern | Codility Lesson | Key Problem / Notes |
|---|---|---|
| Arrays & Prefix Sums | Lesson 2 β Arrays | CyclicRotation, OddOccurrencesInArray, basic prefix sums |
| Counting & Hashing | Lesson 4 β Counting Elements | MissingInteger**, FrogRiverOne, **PermCheck |
| Max Slice / Maximum Subarray Sum | Lesson 3 β Time Complexity | MaxSliceSum (use Kadaneβs algorithm) |
| Sorting / Greedy | Lesson 6 β Sorting | Distinct**, Triangle, **MaxProductOfThree |
| Stacks & Queues | Lesson 7 β Stacks and Queues | Brackets**, Fish, **StoneWall |
| Leaders / Majority Element | Lesson 8 β Leader | Dominator**, **EquiLeader |
| Number Theory | Lesson 10 β Prime and Composite Numbers | CountFactors**, Peaks, **Flags |
| Prefix Sums + Hashmaps | Lesson 5 β PrefixSums | GenomicRangeQuery**, **CountDistinctSlices |
| Graph / BFS / DFS | Lesson 9 β Caterpillar Method (for sequences) | Problems with path traversal, sometimes FrogRiverOne variants |