Click here to Skip to main content
15,850,607 members

Comments by nirvikprantor (Top 7 by date)

nirvikprantor 12-Jul-19 14:58pm View    
In this description the main point is...If we consider the planes delay in the run way above the example,where 2 planes are in each run way then: 1 2 2 3 3
1 1 1
__________
At 1 sec-1st,plane of the 1st,run way which delay time is 1sec,can flay from the run way.so now 1st plane is gone,so on this run way the second plane came in to the 1st position.
same as,in the second run way at 1 sec 1st plane can't take out from the run way...cause its delay time is 2.so at 1sec the plane can go to the middle of the run way..it need another 1 sec to take off from the run way.
That's how we need to find out the total delay time,what total time need to take off all the planes from the run way..an it will be calculate at,(1sec+1sec+1sec+....)=3

1st plane- 1 2 2 3 3
2nd plane- 1 1 1
__________
1sec- 0 1 1 2 2
1sec- 0 0 0 1 1
1sec- 0 0 0 0 0
___________
Total delay=(1+1+1)sec=3 sec
nirvikprantor 12-Jul-19 10:46am View    
Mainly I can't applying the logic...If some of you can send me a sample code..then I can apply it in another way..and so my confusion will be clear...
nirvikprantor 12-Jul-19 10:42am View    
I am trying but I can't solve this problem..
nirvikprantor 12-Jul-19 10:37am View    
Planes are all delivering in ascending order...Truely I am trying but can't solve it
nirvikprantor 11-Jul-19 15:59pm View    
i post another solution,that i tried also,can you please check it?