-
-
Notifications
You must be signed in to change notification settings - Fork 46.8k
Minimum jump to reach end dynamic programming #3544
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minimum jump to reach end dynamic programming #3544
Conversation
|
I am facing Pre-commit failure, my code is working fine. I am not able to understand the issue. Can anyone help? |
|
Hey @Kush1101, I have tested my code multiple times, its working fine. I am not able to understand this PR commit failure. Will you please help. Thanks in advance :) |
|
I have passed all the tests :) |
Can you please let me know whta you did to overcome the issue? I, like many others am facing the same problem. |
|
Sure @anneCoder1805. Actually we have to test our code with "black" and "flake8" to make it properly indentated and to remove extra white spaces. Install black using: "pip3 install black" and then execute it using: "black filename". Same to do with flake8: pip3 install flake8 and flake8 filename. Flake8 will give you all the necessary updates you need to do to make your code pass the tests. (For example: Remove whitespace at line 17 or Line 18 is longer than 83 characters). |
Thanks a lot. |
|
Hello @Kush1101, will you please review and accept my pull request. Thank you in advance :) |
|
@53jk1, will you please merge my pull request. Thank you in advance :) |
Co-authored-by: John Law <johnlaw.po@gmail.com>
|
@poyea I have added your suggested test cases. Please approve my pull request. Thanks in advance :) |
| print(min_jump_to_reach_end(arr)) | ||
| print(min_jump_to_reach_end([])) | ||
| print(min_jump_to_reach_end([0, 1, 10, 15, 2, 2])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry if I've confused you. What I mean was put the test cases in the doctest. Like what you've done like:
"""
>>> min_jump_to_reach_end([1, 3, 5, 8, 9, 2, 6, 7, 6, 8, 9])
3
"""
|
@poyea, Please check now |
|
@poyea , Please merge my pull request if everything looks good to you. Thank you :) |
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
Please reopen this pull request once you commit the changes requested or make improvements on the code. If this is not the case and you need some help, feel free to seek help from our Gitter or ping one of the reviewers. Thank you for your contributions! |


Describe your change:
Checklist:
Fixes: #{$ISSUE_NO}.