mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-04-01 17:52:40 +08:00
Update greedy_algorithms/jumpgame.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
committed by
GitHub
parent
f308a5f6c2
commit
072f9cc946
@@ -41,6 +41,8 @@ bool canJump(const std::vector<int> &nums) {
|
||||
}
|
||||
return lastPos == 0;
|
||||
}
|
||||
} // namespace jump_game
|
||||
} // namespace greedy_algorithms
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user