Commit Graph

688 Commits

Author SHA1 Message Date
Donne Martin
5acef100a9 Update credits (#148) 2017-02-13 18:55:09 -05:00
Donne Martin
7d66cf1a6f Add missing __init__.py files (#147) 2017-02-11 21:41:21 -05:00
Donne Martin
13ef6c803e Update bst challenge control flow (#146) 2017-02-09 05:20:53 -05:00
Donne Martin
a06617f0eb Rework n pairs parens challenge (#145) 2017-02-08 06:36:49 -05:00
Donne Martin
2f2e25c33d Move utopian tree challenge solution to a class (#144) 2017-02-05 12:15:53 -05:00
Donne Martin
cf48629858 Move xor challenge solution to a class (#143) 2017-02-04 19:07:06 -05:00
Donne Martin
098aaf196d Update formatting and whitespace in a few challenges (#142) 2017-01-26 04:55:45 -05:00
Donne Martin
451ff2166a Update insertion sort challenge solution (#141) 2017-01-23 06:53:57 -05:00
Donne Martin
91b3efc3e4 Move Fibonacci challenge code to a class (#140) 2017-01-22 12:06:58 -05:00
Donne Martin
f71936199b Update selection sort challenge algorithm discussion (#139) 2017-01-21 19:35:29 -05:00
Donne Martin
c69769757d Update merge sort challenge algorithm discussion (#138) 2017-01-17 06:16:43 -05:00
Donne Martin
d6da67c748 Update insertion sort challenge (#137)
Update constraints and algorithm.
2017-01-13 20:02:24 -05:00
Donne Martin
d6ae3fa785 Update quicksort challenge space complexity (#136) 2017-01-11 07:17:17 -05:00
Donne Martin
7945ec045d Fix bst challenge time complexity discussion (#135) 2017-01-05 22:59:15 -05:00
Donne Martin
3d49bb1d43 Update quicksort challenge (#134)
Update constraints, test cases, code, algorithm, and tests.
2016-12-29 07:21:56 -05:00
Donne Martin
a6881bab68 Add sort gifs (#133) 2016-12-24 11:15:57 -05:00
Donne Martin
f0ae87ed74 Fix challenge titles punctuation (#132) 2016-12-18 07:20:35 -05:00
Donne Martin
daa7fba255 Update selection sort challenge (#131)
Update constraints, test cases, code, and tests.
2016-12-16 07:52:10 -05:00
Donne Martin
bb56b63c39 Update merge sort challenge (#130)
Update constraints, test cases, code, and tests.
2016-12-12 07:22:16 -05:00
Donne Martin
3cce1ffb51 Update insertion sort challenge (#129)
Update constraints, test cases, code, and tests.
2016-12-11 07:42:54 -05:00
Donne Martin
2399eb60d3 Update stack min challenge (#128)
Rename variable min_vals to stack_of_mins to improve clarity.
Rename method min to minimum to avoid using the same name as the built-in min.
2016-12-08 05:32:13 -05:00
Donne Martin
385bc54efa Update tree bfs challenge (#127)
Switch from Exception to TypeError
2016-12-01 06:29:08 -05:00
Marek Piskorek
a88f0a0b0b Add two more test cases for string compress coding challenge. (#125)
* Add two more test cases for string compress coding challenge.

I believe that the existing test cases are not strict enough to assure
a proper solution for this challenge.

I was able to implement a wrong, but still passing solution to this
basing on set and collections.Counter mechanism, since the test cases
present only situations with singular occurrences of a letter chain and
all the test strings are alphabetically sorted.

I believe that the two new test cases enforce more thorough approach to
the problem and, in effect, the test cases are more descriptive.

* Fix the results in tests since the solution changed in the meantine on
original branch.

* Update also the test_compress and solution.
2016-11-30 07:41:16 -05:00
Donne Martin
9636459124 Update hash map challenge (#126)
Make hash_function private.
2016-11-30 07:16:44 -05:00
Donne Martin
5977fc994d Update linked list challenge (#124)
Remove extraneous check within the find method.  Clean up delete method.
2016-11-27 08:43:48 -05:00
Donne Martin
08d86de559 Remove redundant graph templates (#123)
Use the top-level templates folder instead.
2016-11-26 09:14:31 -05:00
Donne Martin
520aa89555 Update graph challenge (#122)
Simplify add_node logic.  Use more specific TypeError Exception.
2016-11-23 21:21:38 -05:00
Donne Martin
430cca2a01 Update hanoi challenge (#121)
Update constraints and test cases.  Move implementation to a class.  Update tests.
2016-11-19 09:01:44 -05:00
Donne Martin
14de5e4233 Update tree check balance challenge (#120)
Use more specific exception types.
2016-11-17 05:38:28 -05:00
Donne Martin
a0944eb5f4 Update graph dfs challenge (#119)
Fix algorithm space complexity.
2016-11-15 05:17:28 -05:00
Donne Martin
627ade950f Update graph bfs challenge (#118)
Add more detail to algorithm space complexity.
2016-11-14 06:41:42 -05:00
Donne Martin
9a321b9f15 Update graph bfs challenge
Add more detail to algorithm space complexity.
2016-11-14 06:39:16 -05:00
Donne Martin
2d98b8a496 Update graph challenge (#117)
Use more specific exception types. Update constraints. Update add_undirected_edge to use add_edge.
2016-11-13 07:32:33 -05:00
Donne Martin
3d4ae5c22f Update bst challenge (#116)
Switch Exception to TypeError.
2016-11-12 05:35:45 -05:00
Donne Martin
eb8547d8bd Update bst validate challenge (#115)
Change Exception to the more specific TypeError.
2016-11-09 06:56:44 -05:00
Donne Martin
0098574a47 Update bst challenge (#114)
Update constraints and assumptions.
2016-11-07 05:05:26 -05:00
Donne Martin
c6677586d3 Update reverse string challenge (#113)
Update input check logic to check for an empty but not None entry.
2016-11-06 08:38:08 -05:00
Donne Martin
aa4c8ae5b4 Update LL delete mid challenge (#112)
Update constraints and assumptions, solution, and test case.
2016-10-31 07:19:56 -04:00
Donne Martin
2d651a6eca Update queue from stacks challenge (#111)
Update test cases and __init__ method.
2016-10-29 09:13:02 -04:00
Donne Martin
12b58ccf9b Update set of stacks challenge solution (#110)
Add is_empty() method, remove extra linebreak.
2016-10-29 09:10:32 -04:00
Donne Martin
a7fc172004 Update stack min challenge test cases (#109) 2016-10-29 09:08:32 -04:00
Jan Chwiejczak
da87bcbfd4 Add functional solution to compress string challenge (#103) 2016-10-26 08:00:40 -04:00
Donne Martin
0bf56834c0 Update stack min challenge (#108)
Updates constraints and solution.
2016-10-26 07:57:51 -04:00
Donne Martin
cf337334a5 Update bst successor solution (#107)
Update bst successor solution
2016-10-25 06:22:34 -04:00
Donne Martin
bd89e83b65 Update linked list find loop to return a node (#106) 2016-10-21 20:27:58 -04:00
Donne Martin
c961a279fc Add two pointer solution to remove linked list dupes (#105) 2016-10-18 06:20:24 -04:00
Donne Martin
400dc8b55a Update hash map (#104)
Update constraints, test cases, algorithm, code, and tests.
2016-10-16 21:28:31 -04:00
Donne Martin
0f49f67a72 Polish compress string (#101)
Fix empty string check, move duplicate code to a method.
2016-10-12 07:28:12 -04:00
Donne Martin
ff9181fe92 Merge pull request #100 from donnemartin/develop
Move graph and tree challenges and solutions to classes
2016-09-10 07:44:45 -04:00
Donne Martin
1928712364 Move tree level lists to a class 2016-09-10 07:42:54 -04:00