Skip to content

PRO TIP Block youtube.com at the DNS level β€” Pi-hole, NextDNS or your hosts file β€” but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

DSAPython – Minimum Platforms Required | Brute Force to Optimal Two-Pointer | GFG – Part 105 [Hindi]

3.6K views on YouTube

πŸš€ Welcome to Part 105 of Code & Debug’s DSA in Python Course!

In this lecture, we tackle the classic Minimum Platforms problem from GFG by first understanding the Brute Force solution and then moving to a highly efficient Two-Pointer Optimized approach.

πŸ“š What you’ll learn in this video:
βœ… Problem understanding with real-life train schedule analogy
βœ… Brute Force approach using pairwise overlap comparison
βœ… Optimal approach using sorted arrival/departure arrays and two-pointer technique
βœ… Step-by-step dry run to visualize platform allocation
βœ… Time and space complexity analysis of both methods

πŸ‘‰ Practice the problem on Leetcode:
πŸ”— https://www.geeksforgeeks.org/problems/minimum-platforms-1587115620/1

πŸ‘‰ Refer to the article for better understanding:
πŸ“Œ https://codeanddebug.in/blog/minimum-platforms/

πŸ‘‰ πŸ“„ Access the full YouTube DSA Playlist Sheet (All Questions in Order):
πŸ”— https://docs.google.com/spreadsheets/d/1AWE15Fy3wD2iqu2vjK_R7cCiuvSsjYQclcdZmHpF66o/edit?usp=sharing

πŸ‘‰ Enroll in the free DSA Python course here:
https://codeanddebug.in/course/master-dsa-with-leetcode

πŸ‘‰ Enroll for Self-Paced Advance DSA course here:
https://codeanddebug.in/course/zero-to-hero-python-dsa

πŸ™ Thank you for supporting Code & Debug! Don’t forget to like, share, and subscribe to our channel. Hit the πŸ”” bell icon to stay updated with our latest lectures.