Commit Graph

13 Commits

Author SHA1 Message Date
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
Donne Martin
f0ae87ed74 Fix challenge titles punctuation (#132) 2016-12-18 07:20:35 -05:00
Donne Martin
22e3549d7d Move string permutation to a class 2016-08-13 06:39:19 -04:00
Donne Martin
a9d18bdcc0 Fix notebook credits to render properly on nbviewer (#94) 2016-07-31 08:11:18 -04:00
Donne Martin
1656fd50e3 Polish permutation challenge and solution 2016-06-05 07:18:14 -04:00
Yask Srivastava
a3c45ae613 Fixed bug 2016-05-08 13:36:50 +05:30
Donne Martin
75becf1afb Polish permutation solution. 2016-02-10 06:29:50 -05:00
Donne Martin
374d67ff30 Fix #13, PEP8-ify notebooks. 2015-07-11 15:34:14 -04:00
Donne Martin
fac7bbb1be Tweaked constraints section discussion. 2015-07-06 06:03:09 -04:00
Donne Martin
11bd2e9768 Tweaked permutations challenge algorithm discussion. 2015-07-05 09:03:19 -04:00
Donne Martin
78dadf9e45 Updated repo name. 2015-07-05 07:59:00 -04:00
Donne Martin
fb7de503af Added permutation challenge. 2015-07-03 19:56:38 -04:00
Donne Martin
8d1783b717 Appended _solution to current notebooks to prepare for challenge and solution notebooks. 2015-06-30 06:25:31 -04:00