- 5
Plz
Sara is trying a new type of game in which she can jump in either the left direction or in the right direction. Also after each jump the range of her jump increases by 1 unit. i.e if starts from 1 in the next jump she has to jump 2 units then 3 units and so on. Given the number of jumps as N, the range of the first jump to be 1. What will be the minimum distance Sara can be at from the starting point.
1 Odpowiedź
+ 7
Amit Singh ,
not quite clear what your problem / question is. but i assume that you expect that someone is going to do your job.
before we can help you, you should show us your attempt first. if you have not done a try by yourself upto now, please do so. Put your code in playground and link it here.
thanks!