Skip to content

Commit 94efd13

Browse files
Seating Arrangement
1 parent 01d8a33 commit 94efd13

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

HackerEarth/Seating-Arrangement.py

+28
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,34 @@
44
They were travelling in a train one day and they got interested in the seating arrangement of their compartment.
55
The compartment looked something like
66
7+
WS MS AS AS MS WS
8+
1 2 3 4 5 6
9+
12 11 10 9 8 7
10+
--------------------------
11+
13 14 15 16 17 18
12+
24 23 22 21 20 19
13+
--------------------------
14+
25 26 27 28 29 30
15+
36 35 34 33 32 31
16+
--------------------------
17+
37 38 39 40 41 42
18+
48 47 46 45 44 43
19+
--------------------------
20+
49 50 51 52 53 54
21+
60 59 58 57 56 55
22+
--------------------------
23+
61 62 63 64 65 66
24+
72 71 70 69 68 67
25+
--------------------------
26+
73 74 75 76 77 78
27+
84 83 82 81 80 79
28+
--------------------------
29+
85 86 87 88 89 90
30+
96 95 94 93 92 91
31+
--------------------------
32+
97 98 99 100 101 102
33+
108 107 106 105 104 103
34+
735
So they got interested to know the seat number facing them and the seat type facing them.
836
The seats are denoted as follows :
937

0 commit comments

Comments
 (0)