You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The anagram problem description does not specify a requirement that the elements of the returned sublist be in any particular order. However, tests in the suite check against a particular ordered list (instead of checking that all the elements of the list are present).
Motivation: in my solution, I wanted to return a list of unique anagrams (although the problem description does not require this.) I included a call to set() in the process, which changed the order of elements.
If there is interest in relaxing this requirement in the test suite, I will be happy to attempt a pull request.
The text was updated successfully, but these errors were encountered:
@ydrecords Feel free to submit a PR. For testing purposes, please check your changes to the test suite against both your solution and the example solution as-is to verify that no bugs are introduced.
The
anagram
problem description does not specify a requirement that the elements of the returned sublist be in any particular order. However, tests in the suite check against a particular ordered list (instead of checking that all the elements of the list are present).Motivation: in my solution, I wanted to return a list of unique anagrams (although the problem description does not require this.) I included a call to
set()
in the process, which changed the order of elements.If there is interest in relaxing this requirement in the test suite, I will be happy to attempt a pull request.
The text was updated successfully, but these errors were encountered: