Skip to content

Commit dbaa4ae

Browse files
committed
add jump game ii
1 parent 363d33d commit dbaa4ae

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

jump-game-ii/README.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1+
## [Prim's algorithm](http://en.wikipedia.org/wiki/Prim's_algorithm)
12

2-
## TODO
3-
* write down thinking
3+
This solution looks like [Prim's algorithm](http://en.wikipedia.org/wiki/Prim's_algorithm).
4+
5+
6+
* jump to the furthest reachable point
7+
* update `maxjump` like [Jump Game](../jump-game)
8+
* `count = count + 1`
9+
* loop until reach the end
410

0 commit comments

Comments
 (0)