Skip to content
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

[Next Permutation] type error #100

Closed
Shitaibin opened this issue Feb 29, 2016 · 1 comment
Closed

[Next Permutation] type error #100

Shitaibin opened this issue Feb 29, 2016 · 1 comment

Comments

@Shitaibin
Copy link

Code is right, but here is a type error in line 39

2) find the first number from n-1 to i which >= num[i-1]

should be

2) find the first number from n-1 to i which > num[i-1]

.

@haoel
Copy link
Owner

haoel commented Feb 29, 2016

it should be >= num[i-1] instead of > num[i-1]

@haoel haoel closed this as completed Feb 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants