Skip to content

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!

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

Successfully merging this pull request may close these issues.

3 participants