D4
Prefix Sum & Difference Array
20 stations · 8.6hPrefix sums, difference arrays and line sweep for range updates and queries. 4 concept lectures and 16 interview problems explained by codestorywithMIK (8.6h of video), grouped into 3 patterns such as Difference Array, Line Sweep, Prefix XOR / Product.
Start this line →- Difference Array8
- Line Sweep8
- Prefix XOR / Product1
- Introduction26:40
All 20 stations in order
- 1.Introduction
- 2.Line Sweep Vs Difference Array
- 3.Introduction (LeetCode 370)
- 4.Difference Array Technique with Jumps
- 5.Maximum Population Year (LeetCode 1854)
- 6.Meeting Rooms II (LeetCode 253)
- 7.My Calendar II (LeetCode 731)
- 8.Car Pooling (LeetCode 1094)
- 9.My Calendar III (LeetCode 732)
- 10.Describe the Painting (LeetCode 1943)
- 11.Maximum Sum Obtained of Any Permutation (LeetCode 1589)
- 12.Corporate Flight Bookings (LeetCode 1109)
- 13.Shifting Letters II (LeetCode 2381)
- 14.Zero Array Transformation II (LeetCode 3356)
- 15.Zero Array Transformation I (LeetCode 3356)
- 16.Maximum Frequency of an Element After Performing Operations I (LeetCode 3346)
- 17.Maximum Frequency of an Element After Performing Operations II (LeetCode 3347)
- 18.Increment Submatrices by One (LeetCode 2536)
- 19.XOR After Range Multiplication Queries II (LeetCode 3655)
- 20.Minimum Moves to Make Array Complementary (LeetCode 1674)