interactive-coding-challenges/arrays_strings/permutation
William Chargin 556a9adc11 Add duplicate-characters test for permutations (#158)
Summary:
The current test cases for the "string permutation checker" problem do
not include a test case where the inputs have the same elements at
different multiplicities. Without this test case, the implementation

    return s1 is not None and s2 is not None and set(s1) == set(s2)

would pass all tests.

Test Plan:
First, change one of the implementations to the above implementation,
and see that the original tests still pass. Then, apply this patch to
add the new test case. Then, revert the implementation change to see all
tests pass again.
2017-04-04 05:58:53 -04:00
..
__init__.py Renamed top-level folders to use underscores instead of dashes. 2015-06-28 06:39:24 -04:00
permutation_challenge.ipynb Fix challenge titles punctuation (#132) 2016-12-18 07:20:35 -05:00
permutation_solution.ipynb Add duplicate-characters test for permutations (#158) 2017-04-04 05:58:53 -04:00
test_permutation_solution.py Add duplicate-characters test for permutations (#158) 2017-04-04 05:58:53 -04:00