interactive-coding-challenges/arrays_strings
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
..
compress Add two more test cases for string compress coding challenge. (#125) 2016-11-30 07:41:16 -05:00
compress_alt Add functional solution to compress string challenge (#103) 2016-10-26 08:00:40 -04:00
fizz_buzz Add fizz buzz challenge (#149) 2017-02-14 06:19:21 -05:00
hash_map Update hash map challenge (#126) 2016-11-30 07:16:44 -05:00
permutation Add duplicate-characters test for permutations (#158) 2017-04-04 05:58:53 -04:00
priority_queue Add priority queue challenge 2017-03-30 05:42:41 -04:00
reverse_string Standardize spacing code style (#150) 2017-02-25 20:20:16 -05:00
rotation Fix challenge titles punctuation (#132) 2016-12-18 07:20:35 -05:00
str_diff Add str diff challenge 2017-03-30 05:43:16 -04:00
two_sum Add two sum challenge 2017-03-30 05:42:09 -04:00
unique_chars Fix challenge titles punctuation (#132) 2016-12-18 07:20:35 -05:00
__init__.py Renamed top-level folders to use underscores instead of dashes. 2015-06-28 06:39:24 -04:00