C++ Basics
The small building blocks that show up everywhere in LeetCode and HackerRank tests. Try to write each one from memory, then reveal the reference snippet.
63 of 63 tasks
Strings & Parsing9
Building, splitting, trimming and searching text. Most feed/record parsing lives here.
String <-> Number Conversions6
The single most common source of bugs in test code. Know both directions and the failure modes.
Arrays, Vectors & Sorting15
Contiguous storage and the algorithm library. Prefer std::vector and reserve() in hot code.
Bytes, Bits & Byte Order17
Wire formats and market-data packets are raw bytes. Parse them explicitly instead of type-punning.
Fast I/O & Tokenizing5
Test harnesses feed huge inputs. Disable sync and read tokens efficiently.
Hash Maps, Sets & Frequency4
O(1) lookups and counters. Choose unordered_* for speed, std::set/map when order matters.
Math & Number Tricks7
GCD/LCM, integer division, digit surgery and overflow checks.