TCS Company

if g[0]=1,g[1]=-1
g[n]=2*g[n-1]-3*g[n-2]
then calculate g[4]

Read Solution (Total 5)

TCS Other Question

For school children a software was designed.In that software one monkey has to choose balloons. If a monkey chooses 2 at a time and continues picking then 1 baloon is left. If it picks 5 at a time then the remaining is zero,if it picks 6 at a time then remaining is 3. What is the minimum number of balloons? P1 fill a tank in 30hr where as P2 empties the tank in 60 hr. If P1 is opened in the first hour and P2 in the second hour and so on. What is the earliest time in which the tank is filled??