Comments on: Minimum number of platform required for a railway station https://demo.ritambhara.in/minimum-number-of-platform-required-for-a-railway-station/ Coding / System Design Interviews Thu, 29 Sep 2022 06:49:09 +0000 hourly 1 https://wordpress.org/?v=6.7.2 By: Rohit https://demo.ritambhara.in/minimum-number-of-platform-required-for-a-railway-station/#comment-6885 Thu, 29 Sep 2022 06:49:09 +0000 http://www.ritambhara.in/?p=2893#comment-6885 Why do we start the inner for loop in the brute force method at i + 1

]]>
By: Jaswanth https://demo.ritambhara.in/minimum-number-of-platform-required-for-a-railway-station/#comment-1999 Tue, 13 Aug 2019 15:31:15 +0000 http://www.ritambhara.in/?p=2893#comment-1999 What are header files and output for this program?

]]>
By: Rz https://demo.ritambhara.in/minimum-number-of-platform-required-for-a-railway-station/#comment-1998 Mon, 09 Jul 2018 05:03:31 +0000 http://www.ritambhara.in/?p=2893#comment-1998 What if the train comes at 23.00 and leaves the next day at 00.10 ? .. wouldnt that mess up the whole algorithm. The way i see out of this is to have a function that adds 24.00 to the value if departure is less than arrival.

]]>
By: Kamal Rawat https://demo.ritambhara.in/minimum-number-of-platform-required-for-a-railway-station/#comment-1997 Thu, 24 Sep 2015 06:40:25 +0000 http://www.ritambhara.in/?p=2893#comment-1997 In reply to Ravi Kumar.

Thanks Ravi for pointing it out. I have corrected the typo.

]]>
By: Ravi Kumar https://demo.ritambhara.in/minimum-number-of-platform-required-for-a-railway-station/#comment-1996 Thu, 24 Sep 2015 05:32:29 +0000 http://www.ritambhara.in/?p=2893#comment-1996 IF numberOfOverLaps > maxOverlaps THEN
numberOfOverLaps = maxOverlaps;
here reverse, i.e, maxOverlaps = numberOfOverLaps, because maxOverlpas, is zero always, if any overlaps is found numberOfOverLaps++ am i correct. and given arrays minutes > 60, like 9.75

]]>