

Minimum Platforms | SDE Sheet |Arrays - Videos | GeeksforGeeks
source link: https://www.geeksforgeeks.org/videos/minimum-platforms-f9qfl2/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

- 120 Views
- 21/04/2022
In this video we will see how, when given the arrival and departure times of all trains that reach a railway station, the task is to find the minimum number of platforms required for the railway station so that no train waits. We are given two arrays that represent the arrival and departure times of trains that stop.
Example: Input: arr[] = {9:00, 9:40, 9:50, 11:00, 15:00, 18:00} dep[] = {9:10, 12:00, 11:20, 11:30, 19:00, 20:00} Output: 3 Explanation: There are at-most three trains at a time (time between 9:40 to 12:00)
Check out the video to see how we implement this!!
Practice Problem: https://practice.geeksforgeeks.org/problems/minimum-platforms-1587115620/1 Article: https://www.geeksforgeeks.org/minimum-number-platforms-required-railwaybus-station/ SDE Sheet: https://www.geeksforgeeks.org/sde-sheet-a-complete-guide-for-sde-preparation/
Recommend
-
9
Leaders in an ArrayLeaders in an Array | SDE Sheet | ArraysVideo Player is loading.Loaded: 0%Remaining Time -0:0070 Views
-
5
Equilibrium pointEquilibrium point | SDE Sheet | ArraysVideo Player is loading.Loaded: 0%Remaining Time -0:00360 Views
-
8
Minimum SwapsCoursesDSA to DevelopmentFo...
-
5
Minimum indexed characterDecember 28, 2023 |320 ViewsSDE Sheet - Minimum indexed characterSDE Sheet, GFG SDE Sheet, String Save Share 2 LikesDescription
-
13
Stack using two queuesVideosJanuary 10, 2024 |100 ViewsSDE Sheet - Stack using two queuesSDE Sheet, GF...
-
9
Merge Overlapping IntervalsVideosJanuary 10, 2024 |80 ViewsSDE Sheet - Merge Overlapping IntervalsSDE...
-
6
Queue using two StacksVideosJanuary 10, 2024 |50 ViewsSDE Sheet - Queue using two StacksSDE Sheet, GFG...
-
4
Get minimum element from stackVideosJanuary 23, 2024 |560 ViewsSDE Sheet - Get minimum element from stack
-
5
Circular tourVideosJanuary 23, 2024 |940 ViewsSDE Sheet - Circular tourSDE Sheet, GFG SDE Sheet, stack...
-
3
Rotate a Linked ListCourses
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK