You are standing at position 0 on an infinite number line.There is a goal at position target. On each move, you can either go left…
You are standing at position 0 on an infinite number line.There is a goal at position target. On each move, you can either go left…