Plz | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 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.

27th May 2021, 5:11 PM
Amit Singh
Amit Singh - avatar
1 Answer
+ 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!
27th May 2021, 5:51 PM
Lothar
Lothar - avatar