Quick links: C-Tricks HR Interview Que. Code Snippets C Programs C++ Programs Java Programs PHP Examples

Home » Puzzles

Puzzle 12) Ayush and Basket

Submitted by Amit Shukla, on August 10, 2017

Puzzle

A naughty boy Ayush watches Sachin Tendulkar’s innings and act according to number of runs scored by Sachin Tendulkar. Ayush have a basket which he used to put some fruits. As we know that Ayush acts according to number of runs scored by Sachin Tendulkar in an innings. The details of above information are given as follow:

1 Run – Place an orange in the basket.
2 Runs – Place a Mango in the basket.
3 Runs – Place a pear in the basket.
4 Runs – Remove a pear and a Mango from the basket.

One a fine at the start of match, the basket is empty. The sequence of number scored by Sachin Tendulkar is 11232411234232341121314. At the end of innings how many more number of oranges were there as compared to mangoes, inside the basket?


Important points of puzzle:

  1. Ayush watches Sachin Tendulkar’s innings.
  2. Ayush act according to run scored by Sachin Tendulkar.
  3. Ayush have a basket in which he stores fruits according to the run scored by Sachin in an innings.
  4. The details of action of Ayush according to Sachin’s score is given above.
  5. One fine day Sachin scores 11232411234232341121314.
  6. At starting of match the basket is empty.
  7. Now find how more number of oranges were there in basket at the end of innings as compared to mangoes.

Answer

6.


Reason

In these types of problems, you have to calculate the data manually. In this case at the end of inning 6 oranges are more than total number of mangoes. Hence the answer is 6.



Sponsored Links






COMMENTS