Skip to content

Assignment 4 (QuickSort) Solutions #35

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: assignment004
Choose a base branch
from

Conversation

matax87
Copy link

@matax87 matax87 commented Dec 28, 2015

No description provided.

@matax87
Copy link
Author

matax87 commented Dec 30, 2015

@gmertk happy new year to you too, and happy (swift) coding :-)

}
larger -= 1
} else {
equal += 1

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you notice the function running indefinitely here? I also implemented the wikipedia's pseudocode and smaller is always ++ while the function is not breaking/return the tuple.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't. It completes the calls and pass the tests. Did you try my version?
Let me know @diegopetrucci

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right, I was incrementing smaller, not equal. My bad. Thanks for the help Matteo!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants