this may be in any of the three lang i.e c,c++,java
i have got the algo but not able to solve it :P
the question is that there may be at most 50 ballons in 3D whose coordinats should be enter by the compiler and there is a shooter who is variable who may stand at any position i.e ant x,y coordinate and any hight.
the shooter have to shoot all the ballons in the min no of bullets assuming that all the ballons are point source and the bullet can travel uptill infinity in straight ling not depend on the obstacle in its way.
we have to fing min no of bullets he have to shoot so that he may blast all the ballons in min no of bullets the shooter is variable and the ballons coordinate have to be entered by the executor and we have to get output the min no of bullets.
all of this is in 3d i.s ballond ,shooter all r in 3d and a bullet travels in straight line.
i think that this may be clrae to all of u.