We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e810e23 commit 0c0def3Copy full SHA for 0c0def3
getMinPlatforms.py
@@ -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
9
def getMinPlatforms(arr, dep):
10
if len(arr) != len(dep):
11
print("Wrong inputs given...")
0 commit comments