Skip to content

Commit

Permalink
Update frog-jump.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kamyu104 authored Sep 18, 2016
1 parent 5dc0631 commit 888449e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Python/frog-jump.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def canCross(self, stones):
def findJumpStones(stones, i):
jump_stones = []
if i == 0:
if stones[1] == 1:
if stones[1] == stones[0] + 1:
jump_stones.append(1)
else:
for k in (i-1, i, i+1):
Expand Down

0 comments on commit 888449e

Please sign in to comment.