People are lined up at the ticket counter at the railway station. All n people have already lined up in a row (let's label them all from left to right with integers from 1 to n) and await further instructions. However, the tickets will be given in a strict order. Specifically:
The first group to be given tickets are women. Government employees and children both groups have the same priority. After that, all men are allowed to purchase tickets. Senior citizens are given tickets at the last to make it hassle free for them.
If we cannot determine exactly who should be given ticket first for any two members of the line by the rules from the previous paragraph, then the one who stands to the left in the line will be given ticket first for in other words, the one whose number in the line is less):
For each person in the line, we know their status/category as discussed above and also their name All are having different names. Determine the order in which the tickets should be given.
Answers
Answered by
2
Answer:
photosynthesis is a process in which plants get the food.
Explanation:
sorry for spamming your question.
please drop 30 thanks I will return you back.
Similar questions