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

Problem with max definition on Python in chapter_4/quick_sort/max_recursive #248

Closed
k1borgG opened this issue Dec 1, 2022 · 1 comment
Closed

Comments

@k1borgG
Copy link
Contributor

k1borgG commented Dec 1, 2022

If in input list last element is the biggest, the present algorithm is'n count it.

@k1borgG k1borgG changed the title Problem with max definition on Pyyhon in chapter_4/quick_sort/max_recursive Problem with max definition on Python in chapter_4/quick_sort/max_recursive Dec 1, 2022
@k1borgG
Copy link
Contributor Author

k1borgG commented Dec 1, 2022

I solved this problem by changing the return in the case if length == 1 from return 1 to first element of list

@k1borgG k1borgG closed this as completed Dec 1, 2022
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

1 participant