Pranav Jain's Profile
Scholar
57
points

Questions
1

Answers
12

Pranav Jain loves solving puzzles at PuzzleFry.com. I am proud PuzzleFry member and like my time invested in solving brain teasers.
  • There is number line ranging from -infinity to +infinity. Initially you are number 0. you can move in both directions(Moving left would decrease the number and moving right would increase the number). The condition is that in the ith step you have to iterate i numbers only, you can not stop in the middle. Now you have to tell that, whether a given number is reachable or not.

    For example you can reach number 2 in following steps (0,1), (1,-1), (-1,2).

    Also you need to provide the optimal solution to reach a given number if its reachable.

    View Solution
    Submit Solution
    • 1,308.0K views
    • 1 answers
    • 0 votes