why is the second for loop while calculating median in below program? **** https://github.com/nagajyothi/InterviewBit/blob/0d86457f41139d95d0285a7718aee9b53df4aebe/GreedyAlgorithms/Seats.java#L114
why is the second for loop while calculating median in below program?
InterviewBit/GreedyAlgorithms/Seats.java
Line 114 in 0d86457