Skip to content
Sabaqاردو

Arrays for DSA and Placements: Basics to Hard (take U forward)

By take U forward

Course audio
Course audio: English
Level
Intermediate
Length
28 lessons · 13 hours

What you'll be able to do

  • Solve common array problems with brute, better and optimal solutions
  • Use Kadane's algorithm and prefix-sum ideas for subarray problems
  • Work with matrices by rotating, spiralling and zeroing
  • Tackle hard problems such as count inversions and reverse pairs

About this course

This take U forward playlist gathers 28 array problems over about 13 hours, explained in English with brute, better and optimal approaches. It opens with simple tasks such as the second largest element and rotating an array, then moves to union and intersection, missing and single numbers, longest subarray with a given sum, two sum, and sorting zeros, ones and twos. Mid-course topics include majority element, Kadane's algorithm, next permutation, leaders, matrix rotation and spiral traversal, and Pascal's triangle. The hardest lessons cover three sum and four sum, subarrays with xor K, merging intervals, count inversions, reverse pairs and maximum product subarray. It suits learners preparing for coding interviews.

Before you start: One programming language (C++, Java or Python); Basic loops and time complexity

Syllabus

28 lessons · 13:01:43 in total

  1. 1Find Second Largest Element in Array | Remove duplicates from Sorted Array | Arrays Intro Video43:26
  2. 2Rotate Array by K places | Union, Intersection of Sorted Arrays | Move Zeros to End | Arrays Part-21:13:17
  3. 3Find element that appears once | Find missing number | Max Consecutive number of 1's | Arrays Part-338:00
  4. 4Longest Subarray with sum K | Brute - Better - Optimal | Generate Subarrays41:42
  5. 52 Sum Problem | 2 types of the same problem for Interviews | Brute-Better-Optimal18:20
  6. 6Sort an array of 0's 1's & 2's | Intuition of Algo🔥 | C++ Java Python | Brute-Better-Optimal25:07
  7. 7Majority Element I | Brute-Better-Optimal | Moore's Voting Algorithm | Intuition 🔥|Brute to Optimal18:13
  8. 8Kadane's Algorithm | Maximum Subarray Sum | Finding and Printing20:09
  9. 9Rearrange Array Elements by Sign | 2 Varieties of same Problem21:37
  10. 10DP 35. Best Time to Buy and Sell Stock | DP on Stocks 🔥9:11
  11. 11Next Permutation - Intuition in Detail 🔥 | Brute to Optimal28:15
  12. 12Leaders in an Array | Brute - Optimal | Strivers A2Z DSA Course11:53
  13. 13Longest Consecutive Sequence | Google Interview Question | Brute Better Optimal23:11
  14. 14Set Matrix Zeroes | O(1) Space Approach | Brute - Better - Optimal30:07
  15. 15Rotate Matrix/Image by 90 Degrees | Brute - Optimal17:47
  16. 16Spiral Traversal of a Matrix | Spiral Matrix16:33
  17. 17Count Subarray sum Equals K | Brute - Better -Optimal24:09
  18. 18Pascal Triangle | Finding nCr in minimal time26:45
  19. 19Majority Element II | Brute-Better-Optimal26:58
  20. 203 Sum | Brute - Better - Optimal with Codes38:25
  21. 214 Sum | Brute - Better - Optimal with Codes28:47
  22. 22Number of Subarrays with xor K | Brute - Better - Optimal24:55
  23. 23Merge Overlapping Intervals | Brute, Optimal with Precise TC analysis22:35
  24. 24Merge Sorted Arrays Without Extra Space | 2 Optimal Solution32:47
  25. 25Find the Missing and Repeating Number | 4 Approaches 🔥42:24
  26. 26Count Inversions in an Array | Brute and Optimal24:17
  27. 27Reverse Pairs | Hard Interview Question32:26
  28. 28Maximum Product Subarray - Best Intuitive Approach Discussed20:27

Questions

How long is this course?
It has 28 lessons and about 13 hours of video (13:01:43 in total). Your progress is saved lesson by lesson, so you can stop and continue on any device you sign in on, or in the same browser without signing in.
Is this course in English?
The lessons are taught in English. The teacher is take U forward; the videos play from their official YouTube channel, and Sabaq adds the lesson order, progress tracking, notes and the summary on this page.
Who is this course for, and what should I know first?
It is aimed at learners who already know the basics. Before you start: One programming language (C++, Java or Python); Basic loops and time complexity.
Is it free, and do I need an account?
Yes, it is free to watch and no account is needed. The videos are official uploads by the teacher on YouTube; a free DanixSoft account is optional and only syncs your progress between devices.
What should I take after this course?
A good next step on Sabaq is “Algorithms (Abdul Bari)”. The “What to take next” list on this page shows more courses at the same or a higher level in the same topic.

What to take next

Videos by take U forward, played from their official YouTube channel. Subscribe on YouTube

Official upload by the teacher or institution on their own channel, shown with YouTube's embedded player.

Lessons listed from the official YouTube playlist. Full playlist on YouTube

Lessons last checked Nov 2026. Course summary and lesson structure by Sabaq.

Report a problem or a rights request