A boy is asked to put one mango in a basket when ordered 'One', one orange when ordered 'Two', one apple when ordered 'Three', and is asked to take out from the basket one mango and an orange when ordered 'Four'.
A sequence of orders is given as: 1 2 3 3 2 1 4 2 3 1 4 2 2 3 3 1 4 1 1 3 2 3 4
Question: 1
How many total oranges were in the basket at the end of the above sequence?
Show Hint
For sequence problems, keep track of each step systematically.
Let's follow the sequence of orders:
- "1" means putting 1 mango in the basket: Total mangoes = 1.
- "2" means putting 1 orange in the basket: Total oranges = 1.
- "3" means putting 1 apple in the basket: Total apples = 1.
- "4" means taking out 1 mango and 1 orange: Mangoes = 0, Oranges = 0.
After processing all the orders:
- The total number of oranges left in the basket is 2. Hence, the Correct Answer is 2 oranges.
Was this answer helpful?
0
0
Question: 2
How many total fruits will be in the basket at the end of the above order sequence?
Show Hint
Count the 1s, 2s, 3s and 4s in the sequence; each 4 removes one mango and one orange.