|
1 | 1 |
|
2 | 2 | ### The RailwayReservation code produces the Following output.
|
3 | 3 |
|
4 |
| - |
5 |
| - |
6 |
| - |
7 |
| - |
8 |
| - |
9 |
| - |
10 |
| - |
11 |
| - |
12 |
| - |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
13 | 13 |
|
14 | 14 | <br>
|
15 | 15 | <br>
|
16 | 16 |
|
17 | 17 | ### Now, the following output are from static data which is uncommented on RailwayReservation to fill all the tickets
|
18 |
| - |
19 |
| - |
20 |
| - |
21 |
| - |
22 |
| - |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
23 | 23 |
|
24 | 24 | Here the ticket is removed from RAC list and produces a vacancy and therefore first ticket from waiting list moved to RAC List and hence produces a vacancy in waiting list
|
25 | 25 | <br>
|
26 | 26 |
|
27 |
| - |
28 |
| - |
| 27 | + |
| 28 | + |
29 | 29 |
|
30 |
| - |
31 |
| - |
32 |
| - |
33 |
| - |
34 |
| - |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
35 | 35 |
|
0 commit comments