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
Two sum unit test too strict #230
Labels
Comments
The constraints in the problem clearly state that there is exactly one solution. Instead of modifying the solution, the problem should probably state: ...find the two indices though this is an implicit assumption for the two sum problem in general. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
[4, 2]
should also be a valid answer. Unittest has an assertItemsEqual method, I'm not sure if nose has that too. I'm happy to write a PR for this, it's trivial to fix.The text was updated successfully, but these errors were encountered: