Competitive ProgrammingRecorded

Learn C++ STL

Lessons: English + Bangla

৳1,999

Learn C++ STL

This course includes

  • 142 text lessons
  • Lifetime access
  • Access on mobile

Curriculum

Course content

19 modules · 164 lessons

The STL in One Picture: Four Kinds of Thing
Why It Matters: Fewer Lines, Fewer Bugs, Known Costs
The Containers at a Glance: What Each One Is Good At
Iterators and Algorithms: How the Pieces Connect
How to Read cppreference, and What O(log n) Promises
Module Test: What the STL Is
Hello, C++: The Same Program in Both Languages
Fast Input and Output: Why Contest Code Starts the Same Way
References: A Second Name for the Same Box
auto and the Range-for: Less Typing, Same Meaning
Templates, the Idea: One Function, Every Type
pair and tuple: Two or More Things With One Name
std::, Namespaces and the Headers You Will Actually Include
Problems: Just-Enough C++
Module Test: Just-Enough C++
vector: Many Boxes That Grow by Themselves
Every vector Operation, One by One, With Its Cost
Full Programs: From Five Lines to a Real Tool
When to Use vector and When Not To
Under the Hood: How a vector Grows, and What That Breaks
CP and Interview Pack: vector Patterns, Questions and the Bug Gallery
Problems: vector
Cheat Sheet: vector on One Page
Module Test: vector
string: A Row of Characters That Knows Its Own Length
Every string Operation, One by One, With Its Cost
Full Programs: From One Word to a Text Report
When to Use string and When Not To
Under the Hood: The Small String Buffer, Growth and the Cost of +
CP and Interview Pack: string Patterns, Questions and the Bug Gallery
Problems: string
Cheat Sheet: string on One Page
Module Test: string
array and deque: A Size You Fix, and a Line That Grows at Both Ends
Every array and deque Operation, One by One, With Its Cost
Full Programs: From a Week of Readings to a Ticket Line
When to Use array, deque or vector, and When Not To
Under the Hood: deque's Blocks and Map, and What a Push Breaks
CP and Interview Pack: array and deque Patterns, Questions and the Bug Gallery
Problems: array and deque
Cheat Sheet: array and deque on One Page
Module Test: array and deque
list: A Chain of Nodes You Can Cut and Rejoin Anywhere
Every list and forward_list Operation, One by One, With Its Cost
Full Programs: From a To-do List to an LRU Cache
When to Use list or forward_list, and Why the Answer Is Usually No
Under the Hood: list's Nodes, the Sentinel, and What a Walk Really Costs
CP and Interview Pack: list Patterns, Questions and the Bug Gallery
Problems: list and forward_list
Cheat Sheet: list and forward_list on One Page
Module Test: list and forward_list
stack and queue: The Newest Leaves First, or the Oldest
Every stack and queue Operation, One by One, With Its Cost
Full Programs: From Reversing a Line to a Shortest Path
When to Use stack, queue or a Plain vector, and When Not To
Under the Hood: The Container Inside, and Why pop Returns Nothing
CP and Interview Pack: stack and queue Patterns, Questions and the Bug Gallery
Problems: stack and queue
Cheat Sheet: stack and queue on One Page
Module Test: stack and queue
priority_queue: The Largest Leaves First, Whenever It Came
Every priority_queue Operation, One by One, With Its Cost
Full Programs: From the Top Three Scores to a Shortest Route
When to Use priority_queue, and When a Sort or a set Is Better
Under the Hood: The Heap Inside a vector, the Sift Arithmetic and make_heap
CP and Interview Pack: priority_queue Patterns, Questions and the Bug Gallery
Problems: priority_queue
Cheat Sheet: priority_queue on One Page
Module Test: priority_queue
set: Sorted, No Repeats, and Found in a Few Steps
Every set and multiset Operation, One by One, With Its Cost
Full Programs: From Dice Rolls to a Running Median
When to Use set, a Sorted vector or a Hash Set, and When Not To
Under the Hood: The Tree's Nodes, Its Height, and Iterators That Stay
CP and Interview Pack: set Patterns, Questions and the Bug Gallery
Problems: set and multiset
Cheat Sheet: set and multiset on One Page
Module Test: set and multiset
map: Each Key Holds a Value, and the Keys Stay Sorted
Every map and multimap Operation, One by One, With Its Cost
Full Programs: From a Word Count to a Grade Table
When to Use map, a Sorted vector of Pairs or a Plain Array, and When Not To
Under the Hood: A Pair in Every Node, and What a Miss Costs
CP and Interview Pack: map Patterns, Questions and the Bug Gallery
Problems: map and multimap
Cheat Sheet: map and multimap on One Page
Module Test: map and multimap
unordered_set and unordered_map: Jump Straight to the Right Bucket
Every unordered_set and unordered_map Operation, One by One, With Its Cost
Full Programs: From a Door List to a Symbol Table
When to Use a Hash Container, a Tree or a Plain Array, and When Not To
Under the Hood: Chained Buckets, Prime Counts and the Anti-Hash Test
CP and Interview Pack: Hash Patterns, Questions and the Bug Gallery
Problems: unordered_set and unordered_map
Cheat Sheet: unordered_set and unordered_map on One Page
Module Test: unordered_set and unordered_map
Iterators: A Position That Knows How to Move
Every Iterator Operation, One by One, With Its Cost
Full Programs: From a Backwards Playlist to Reading Every Number
When to Use an Iterator, an Index or a Range-for, and When Not To
Under the Hood: An Iterator Is a Wrapped Pointer
CP and Interview Pack: Iterator Patterns, Questions and the Bug Gallery
Problems: Iterators
Cheat Sheet: Iterators on One Page
Module Test: Iterators
sort: Put Things in Order, and Say Which Order You Mean
Every Sorting Call and Every Way to Write the Rule, With Its Cost
Full Programs: From a Race Table to a priority_queue That Takes Your Rule
When to Sort, and When a set, a priority_queue or Counting Does It Better
Under the Hood: Introsort, Comparator Calls and What a Lambda Costs
CP and Interview Pack: Sort Patterns, Questions and the Bug Gallery
Problems: sort, Comparators and Lambdas
Cheat Sheet: sort, Comparators and Lambdas on One Page
Module Test: sort, Comparators and Lambdas
Binary Search: Halve a Sorted Row Until One Place Is Left
Every Binary Search Call, One by One, With Its Cost
Full Programs: From a Price Check to Binary Search on the Answer
When to Use Binary Search, a set, a Hash or a Plain Scan, and When Not To
Under the Hood: GCC's Halving Loop, Branches and the Cache
CP and Interview Pack: Binary Search on the Answer, LIS and the Bug Gallery
Problems: binary_search, lower_bound, upper_bound and equal_range
Cheat Sheet: Binary Search and the Bounds on One Page
Module Test: binary_search, lower_bound, upper_bound and equal_range
Algorithms: One Call Instead of a Loop, and Every Order of a Set
Every Algorithm in the Weekly Set, One by One, With Its Cost
Full Programs: From a One-Line Average to the k-th Smallest
When to Use an Algorithm, and When a Plain Loop Is Clearer
Under the Hood: Introselect, next_permutation's Four Moves and the Sum That Wraps
CP and Interview Pack: Brute Force by Permutation, Prefix and Difference Arrays, the k-th Order Statistic
Problems: Numeric and Other Algorithms
Cheat Sheet: The Weekly Algorithms on One Page
Module Test: Numeric and Other Algorithms
A Row of Switches You Can Move Together
Every bitset Operation, One by One, With Its Cost
Five Programs That Give Each Bit a Job
Choose the Representation Before Chasing Speed
Words, Padding, and a Sieve Performance Lab
Contest Patterns, Interview Answers, and Bugs You Can Reproduce
Problems: bitset and Bit Tricks
bitset Quick Reference
Module Test: bitset and Bit Tricks
Which Container Answers Your Next Question?
Sliding Windows and Two Pointers, With Their Proofs
Dijkstra: Roads, Current Distances, and Stale Heap Entries
Coordinate Compression and a Budget for Your Algorithm
Changing Ranks With GCC pb_ds, and What a Plain Set Cannot Promise
Six Contest Patterns, Six Interview Answers, and Six Bugs
Problems: The STL in Competitive Programming
STL in CP: the Container and Pattern Cost Sheet
Module Test: The STL in Competitive Programming
Six Layouts, Two Kinds of Size
Every Operation, With Its Qualifier
Cache, Equal Work, and One Measured Lab
The Complete Handle Invalidation Table
Allocators, One Pool, and a Cheap Vector Return
Four Workloads, Six Interview Answers, and Five Bugs
Problems: Under the Hood
Iterator Invalidation: the Desk Sheet
Module Test: Under the Hood
Project One: A Cache That Remembers Recent Visits
Project Two: Words, Counts and Places
Project Three: Standings Without Lost Teams
Forty STL Answers, Five Implementations and the Bug Gallery
Module Test: Three Projects and the Interview Pack

Practice

Where the practice actually happens

Watching lessons is the easy part. These two decide whether you are still solving problems in month three.

Progsity Playground running a C program in the browser, with the code editor on the left and the output panel on the right showing Hello, World! and an Accepted verdict.
Try it yourself

Progsity Playground

Run C and C++ straight in the browser, editor on one side, output and standard input on the other. Nothing to install, so trying an idea never waits on a working compiler.

The Achievements page showing level and XP progress, current and best streak, and the badge collection.
A ninety-day activity calendar where darker squares mean more XP earned that day, above the weekly leaderboard.

XP, streaks, badges and a weekly leaderboard

Every lesson, quiz and solved problem earns XP, which raises your level and unlocks badges, sixteen of them, from First Steps to a hundred-day streak. Each week you also see where you stand against the rest of your batch.

Enroll

Ready to start learning?

Learn C++ STL

৳1,999৳2,99933% off