Skip to content
Avio Lines
D4

Prefix Sum & Difference Array

20 stations · 8.6h

Prefix 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 →
problems by zone (pattern)
  • Difference Array8
  • Line Sweep8
  • Prefix XOR / Product1

All 20 stations in order

  1. 1.Introduction
  2. 2.Line Sweep Vs Difference Array
  3. 3.Introduction (LeetCode 370)
  4. 4.Difference Array Technique with Jumps
  5. 5.Maximum Population Year (LeetCode 1854)
  6. 6.Meeting Rooms II (LeetCode 253)
  7. 7.My Calendar II (LeetCode 731)
  8. 8.Car Pooling (LeetCode 1094)
  9. 9.My Calendar III (LeetCode 732)
  10. 10.Describe the Painting (LeetCode 1943)
  11. 11.Maximum Sum Obtained of Any Permutation (LeetCode 1589)
  12. 12.Corporate Flight Bookings (LeetCode 1109)
  13. 13.Shifting Letters II (LeetCode 2381)
  14. 14.Zero Array Transformation II (LeetCode 3356)
  15. 15.Zero Array Transformation I (LeetCode 3356)
  16. 16.Maximum Frequency of an Element After Performing Operations I (LeetCode 3346)
  17. 17.Maximum Frequency of an Element After Performing Operations II (LeetCode 3347)
  18. 18.Increment Submatrices by One (LeetCode 2536)
  19. 19.XOR After Range Multiplication Queries II (LeetCode 3655)
  20. 20.Minimum Moves to Make Array Complementary (LeetCode 1674)