Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0c0def3

Browse files
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‎

Lines changed: 8 additions & 0 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /