C++ for Competitive Programming
Study Material for C++ for Competitive Programming
Ch 1: C++ Foundations & Input/Output
Program Structure & Compilation · Variables & Data Types · Arithmetic Operations & Modulo · Integer Overflow & The 1LL Trick · Input/Output Streams & Fast I/O · Conditionals & Logical Operators
Ch 8: Vectors, Pairs & Utility Algorithms
std::vector — The Dynamic Array · std::pair — Grouping Two Values · std::tuple — Grouping Three or More Values (D1) · String STL Methods (Advanced) · Iterators — The Bridge Between Containers and Algorithms · Utility Algorithms
Ch 9: Sets, Maps & Multi-Containers
std::set — Ordered Unique Elements · std::multiset — Ordered Elements with Duplicates · std::map — Key-Value Associations · std::unordered_map & std::unordered_set — Hash-Based Containers · std::stack — LIFO Container Adapter · std::queue — FIFO Container Adapter · std::deque — Double-Ended Queue · std::priority_queue — Heap-Based Container
Ch 6: Structs, Lambdas & Structured Bindings
Structures (Structs) in C++ · Lambdas & Inline Comparators · auto & Structured Bindings (C++17)
Ch 7: Preprocessor, Debug Macros & Compilation
The C++ Preprocessor & Macros · Compilation Pipeline & G++ Compiler Flags
Related Topics
Published by RunTimeFix · Comprehensive guides for competitive programming