Skip to content

Commit 0c0def3

Browse files
authored
Update getMinPlatforms.py
1 parent e810e23 commit 0c0def3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

getMinPlatforms.py

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# Given the arrival and departure times of all trains
2+
# that reach a railway station, the task is to find the
3+
# minimum number of platforms required for the railway
4+
# station so that no train waits.
5+
6+
# We are given two arrays that represent the arrival and
7+
# departure times of trains that stop.
8+
19
def getMinPlatforms(arr, dep):
210
if len(arr) != len(dep):
311
print("Wrong inputs given...")

0 commit comments

Comments
 (0)