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
Tay Yang Shun
f2ff4d7982
Fix broken Anki deck links to System Design Primer ( #157 )
2017-04-03 21:42:43 -04:00
Donne Martin
88c257f2f0
Update Anki flashcards ( #160 )
2017-04-03 21:38:38 -04:00
Donne Martin
4c8a29dcc4
Fix broken links to challenges ( #155 )
2017-04-03 06:57:24 -04:00
Donne Martin
d78cebc59b
Fix System Design Primer image in README ( #154 )
2017-04-03 06:36:04 -04:00
Donne Martin
763fe6b392
Merge pull request #153 from donnemartin/develop
...
Add 64 new challenges
2017-04-03 06:29:44 -04:00
Donne Martin
68d2a47ddd
Merge branch 'master' into develop
...
* master:
Change gnureadline with prompt toolkit for windows users
2017-04-03 06:26:30 -04:00
Donne Martin
503c0b8a79
Add README April 2017 update note
2017-04-03 06:24:02 -04:00
Donne Martin
f09dfe741e
Update README Contributing link
2017-04-01 04:15:39 -04:00
Donne Martin
d4d08fa760
Tweak README Notebook Structure intro
2017-04-01 04:14:52 -04:00
Donne Martin
292777a21e
Tweak README intro
2017-04-01 04:14:32 -04:00
Donne Martin
99710adce1
Add README System Design Primer mention
2017-04-01 04:12:00 -04:00
Donne Martin
da3895cae5
Add README Anki Flashcards section
2017-04-01 04:11:30 -04:00
Donne Martin
301e9905e0
Add Anki Coding flashcard deck
2017-04-01 04:10:44 -04:00
Donne Martin
3acc09762e
Add README TODO ref implementation
2017-04-01 04:09:01 -04:00
Donne Martin
76e26ae1b0
Add README algorithms ref implementation
2017-04-01 04:08:40 -04:00
Donne Martin
df7c426a98
Add README data structures ref implementation
2017-04-01 04:07:55 -04:00
Donne Martin
9db85a1391
Update README Challenge Categories
2017-04-01 04:06:18 -04:00
Donne Martin
92cc4a60ac
Tweak README Future Development section
2017-03-31 05:06:40 -04:00
Donne Martin
20308551f1
Center README challenge category header images
2017-03-31 05:05:50 -04:00
Donne Martin
9d2f4e5ce9
Add new challenges to README Arrays and Strings
2017-03-31 05:04:19 -04:00
Donne Martin
fa67a106ad
Add new challenges to README Stacks and Queues
2017-03-31 05:03:25 -04:00
Donne Martin
bd16c53de7
Add new challenges to README Graphs and Trees
2017-03-31 05:02:03 -04:00
Donne Martin
dbc11efce4
Add new challenges to README Sorting and Searching
2017-03-31 05:01:24 -04:00
Donne Martin
03d8bdda37
Add new challenges to README Recursion and DP
2017-03-31 05:00:44 -04:00
Donne Martin
6cb4a4d7fe
Add new challenges to README Math and Probability
2017-03-31 05:00:08 -04:00
Donne Martin
9843eff5c5
Add new challenges to README Bit Manipulation
2017-03-31 04:59:21 -04:00
Donne Martin
1483a53011
Add new challenges to README Online Judges
2017-03-31 04:58:38 -04:00
Donne Martin
f526daff81
Update README mentions of Python 3.4 to 3.x
2017-03-31 04:53:02 -04:00
Donne Martin
9ef693852c
Move README Future Development section
2017-03-31 04:52:07 -04:00
Donne Martin
efe9d3e204
Update README resources
2017-03-31 04:51:02 -04:00
Donne Martin
1e05d35fca
Fix check balance challenge spacing
2017-03-31 04:49:08 -04:00
Donne Martin
6119c3043f
Add bit_manipulation/__init__.py
2017-03-31 04:46:14 -04:00
Donne Martin
65caa98e57
Add bits to flip challenge
2017-03-31 04:45:28 -04:00
Donne Martin
5b8ae59f09
Add draw line challenge
2017-03-30 05:49:59 -04:00
Donne Martin
c06594871d
Add flip bit challenge
2017-03-30 05:49:29 -04:00
Donne Martin
d4d819b476
Add get next challenge
2017-03-30 05:49:03 -04:00
Donne Martin
b1ea49f0c8
Add insert m into n challenge
2017-03-30 05:48:26 -04:00
Donne Martin
470b38cdc4
Add pairwise swap challenge
2017-03-30 05:45:04 -04:00
Donne Martin
dc4c01c690
Add print binary challenge
2017-03-30 05:44:27 -04:00
Donne Martin
907f75d0d0
Add bit challenge
2017-03-30 05:43:38 -04:00
Donne Martin
7d8a40adf8
Add str diff challenge
2017-03-30 05:43:16 -04:00
Donne Martin
3ecc5ed263
Add priority queue challenge
2017-03-30 05:42:41 -04:00
Donne Martin
1112520784
Add two sum challenge
2017-03-30 05:42:09 -04:00
Donne Martin
6c507fc3ea
Add bst second largest challenge
2017-03-30 05:41:29 -04:00
Donne Martin
3051c877e5
Add graph build order challenge
2017-03-30 05:41:06 -04:00
Donne Martin
3e0d78f685
Add graph shortest path challenge
2017-03-30 05:40:46 -04:00
Donne Martin
3837b5a8cc
Add graph shortest path unweighted challenge
2017-03-30 05:40:14 -04:00
Donne Martin
d352f56ecb
Add min heap challenge
2017-03-30 05:39:53 -04:00
Donne Martin
2a368b42b6
Add invert tree challenge
2017-03-30 05:39:30 -04:00