12 weeks, 66 problems
C++ practice plan
Each week pairs one DSA pattern with the C++ and STL skills it makes you use. A problem counts as done once you solve it, with or without a hint.
Overall0/67
W1 C++ warm-up: vectors, strings, fast I/O vector, string, auto, range-for, ios::sync_with_stdio(false) 0/6
-
1
Two SumLogEasyNot started
-
26
Remove Duplicates from Sorted ArrayLogEasyNot started
-
27
Remove ElementLogEasyNot started
-
88
Merge Sorted ArrayLogEasyNot started
-
189
Rotate ArrayLogMediumNot started
-
283
Move ZeroesLogEasyNot started
W2 STL containers + custom sorting unordered_map, map, set, multiset, pair, sort with lambda comparator 0/5
-
49
Group AnagramsLogMediumNot started
-
347
Top K Frequent ElementsLogMediumNot started
-
128
Longest Consecutive SequenceLogMediumNot started
-
56
Merge IntervalsLogMediumNot started
-
179
Largest NumberLogMediumNot started
W3 Prefix sums + difference arrays partial_sum, long long overflow, prefix maps 0/5
-
303
Range Sum Query - ImmutableLogEasyNot started
-
560
Subarray Sum Equals KLogMediumNot started
-
238
Product of Array Except SelfLogMediumNot started
-
1094
Car PoolingLogMediumNot started
-
525
Contiguous ArrayLogMediumNot started
W4 Two pointers + sliding window deque, window invariants, frequency arrays 0/6
-
15
3SumLogMediumNot started
-
11
Container With Most WaterLogMediumNot started
-
3
Longest Substring Without Repeating CharactersLogMediumNot started
-
209
Minimum Size Subarray SumLogMediumNot started
-
76
Minimum Window SubstringLogHardNot started
-
239
Sliding Window MaximumLogHardNot started
W5 Binary search (incl. on the answer) lower_bound, upper_bound, monotonic predicate 0/6
-
35
Search Insert PositionLogEasyNot started
-
34
Find First and Last Position of Element in Sorted ArrayLogMediumNot started
-
33
Search in Rotated Sorted ArrayLogMediumNot started
-
875
Koko Eating BananasLogMediumNot started
-
1011
Capacity To Ship Packages Within D DaysLogMediumNot started
-
410
Split Array Largest SumLogHardNot started
W6 Stacks, monotonic stack, heaps stack, priority_queue with greater<>, custom heap comparator 0/6
-
739
Daily TemperaturesLogMediumNot started
-
496
Next Greater Element ILogEasyNot started
-
84
Largest Rectangle in HistogramLogHardNot started
-
215
Kth Largest Element in an ArrayLogMediumNot started
-
23
Merge k Sorted ListsLogHardNot started
-
295
Find Median from Data StreamLogHardNot started
W7 Greedy + interval problems sort by end, exchange argument 0/6
-
55
Jump GameLogMediumNot started
-
45
Jump Game IILogMediumNot started
-
435
Non-overlapping IntervalsLogMediumNot started
-
452
Minimum Number of Arrows to Burst BalloonsLogMediumNot started
-
134
Gas StationLogMediumNot started
-
621
Task SchedulerLogMediumNot started
W8 Recursion + backtracking pass by reference, pruning, vector<vector<int>> 0/5
-
78
SubsetsLogMediumNot started
-
46
PermutationsLogMediumNot started
-
39
Combination SumLogMediumNot started
-
79
Word SearchLogMediumNot started
-
51
N-QueensLogHardNot started
W9 Graphs: BFS, DFS, topo sort, DSU, Dijkstra adjacency list, queue, DSU struct, priority_queue<pair> 0/7
-
200
Number of IslandsLogMediumNot started
-
994
Rotting OrangesLogMediumNot started
-
207
Course ScheduleLogMediumNot started
-
210
Course Schedule IILogMediumNot started
-
547
Number of ProvincesLogMediumNot started
-
684
Redundant ConnectionLogMediumNot started
-
743
Network Delay TimeLogMediumNot started
W10 Dynamic programming 1D + 2D vector<vector<long long>>, memo vs tabulation, space optimisation 0/7
-
70
Climbing StairsLogEasyNot started
-
198
House RobberLogMediumNot started
-
322
Coin ChangeLogMediumNot started
-
300
Longest Increasing SubsequenceLogMediumNot started
-
1143
Longest Common SubsequenceLogMediumNot started
-
72
Edit DistanceLogMediumNot started
-
416
Partition Equal Subset SumLogMediumNot started
W11 Trees + bits + math __builtin_popcount, bit masks, sieve, fast power, modulo 1e9+7 0/7
-
104
Maximum Depth of Binary TreeLogEasyNot started
-
236
Lowest Common Ancestor of a Binary TreeLogMediumNot started
-
124
Binary Tree Maximum Path SumLogHardNot started
-
136
Single NumberLogEasyNot started
-
338
Counting BitsLogEasyNot started
-
204
Count PrimesLogMediumNot started
-
50
Pow(x, n)LogMediumNot started