Planting Trees
In a particular field, there are trees in a single row from left to righ
Each tree has a value V. You cut trees from left to right and for ea
tree of value V that you cut, you plant (V + 1) % M trees on the ris
most end with values ranging from 0 to
((V+ 1) % M) - 1.
Initially, there was only one tree with value 2. Find the total numb
of trees present after cutting K trees.
A man wants to invest 25000rs in his two sons bank account. In such away that when they become 18 years old they get equal interest. Present age of his two sons 12yr and 14yr If rate of interest 5% p.a than find investment in younger son account.