You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Akash the die heart fan of AR Rahman went to the live concert happened in Bangalore with his family members.
4
+
The event management firm responsible for the event arranged the seats for the audience in descending order of maximum number of tickets booked for single family.
5
+
As per the seating arrangement family with the highest number of people are allotted the seats in the front rows and the family with the lowest number of people are allotted the seats in the last row.
6
+
For the convenience of the seating arrangement volunteers to know how many seat need to be positioned in each row the event management firm have planned to develop the software which displays the exact seat layout if the total number of rows is provided.
7
+
Can you help them with the logic of doing so?
8
+
Constraints:
9
+
1 ≤ nooffamilymembers ≤ 20
10
+
Input Format:
11
+
Only line of input has single integer representing the total number of rows for the concert.
12
+
Output Format:
13
+
Print the seating arrangement layout based on the number of rows provided.
Thanos and iron man had a challenge to get the stones from Hulk. But Hulk gave the task to them. They need to display the even and odd numbers separately from the numbers.
4
+
Input Format:
5
+
First value is the size of the array.
6
+
Second value onwards the numbers which will be separated as even and odd.
0 commit comments