Commit Graph
100 Commits
Author SHA1 Message Date
Donne MartinandGitHub 884bbe4870 Polish tree dfs challenge and solution (#78)
Update constraints and algorithm discussion.
2016-06-25 08:30:02 -04:00
Donne MartinandGitHub c7854b69cc Polish tree bfs challenge and solution (#77)
Update constraints and algorithm discussion.
2016-06-25 08:26:19 -04:00
Donne MartinandGitHub 1321723eb9 Polish bst min challenge and solution (#76)
Update constraints, algorithm discussion, and code.
2016-06-25 08:23:28 -04:00
Donne MartinandGitHub c24a628329 Polish bst challenge and solution (#75)
Update constraints, algorithm discussion, and code.
2016-06-24 07:23:20 -04:00
Donne MartinandGitHub c7e9a85db7 Polish queue from stacks challenge and solution (#74)
Update constraints, algorithm discussion, and code.
2016-06-23 05:55:15 -04:00
Donne MartinandGitHub 7f338b0e64 Polish set of stacks challenge and solution (#73)
Update constraints, algorithm discussion, and code.
2016-06-21 05:30:14 -04:00
Donne MartinandGitHub e71b280082 Polish stack min challenge and solution (#72)
Update constraints, algorithm discussion, code, and tests.
2016-06-20 06:54:08 -04:00
Donne MartinandGitHub 98ad50edaf Update constraints for n stacks challenge and solution (#71) 2016-06-19 21:00:44 -04:00
Donne MartinandGitHub 0d20ff5931 Polish queue challenge and solution (#70)
Update constraints, algorithm discussion, and code.
2016-06-19 20:08:26 -04:00
Donne MartinandGitHub 4cdb85e22d Polish stack challenge and solution (#69)
Update constraints and code.
2016-06-19 20:02:53 -04:00
Donne MartinandGitHub c2bd267816 Merge pull request #68 from donnemartin/develop
Polish merge sort challenge and solution
2016-06-18 22:22:04 -04:00
Donne Martin 11e290e5a4 Polish merge sort challenge and solution
Update constraints and code.
2016-06-18 22:21:30 -04:00
Donne MartinandGitHub b470c821b4 Merge pull request #67 from donnemartin/develop
Polish quicksort challenge and solution
2016-06-18 22:17:40 -04:00
Donne Martin 981f775d97 Polish quicksort challenge and solution
Update constraints and code.
2016-06-18 22:17:09 -04:00
Donne MartinandGitHub 31359896a8 Merge pull request #66 from donnemartin/develop
Polish insertion sort challenge and solution
2016-06-18 22:16:11 -04:00
Donne Martin 321ff02887 Polish insertion sort challenge and solution
Update constraints and code.
2016-06-18 22:15:48 -04:00
Donne MartinandGitHub e22ee5fbe2 Merge pull request #65 from donnemartin/develop
Polish selection sort challenge and solution
2016-06-18 22:12:49 -04:00
Donne Martin d89d600e5b Polish selection sort challenge and solution
Update constraints, algorithm, code, and test.
2016-06-18 22:12:13 -04:00
Donne MartinandGitHub ea1bb12a13 Merge pull request #64 from donnemartin/develop
Update linked list constraints
2016-06-18 22:11:55 -04:00
Donne Martin 54b5e12230 Update linked list constraints
Specify singly linked list, non circular.  Also specify the solution fits in memory.
2016-06-18 13:55:29 -04:00
Donne MartinandGitHub dcfde9586e Merge pull request #63 from donnemartin/develop
Polish linked list palindrome challenge and solution
2016-06-18 13:54:03 -04:00
Donne Martin 98a71e72e9 Polish linked list palindrome challenge and solution
Update constraints and solution code.
2016-06-18 13:53:04 -04:00
Donne MartinandGitHub 0611967dee Merge pull request #62 from donnemartin/develop
Polish delete mid node challenge and solution
2016-06-18 11:46:53 -04:00
Donne Martin 37cf2028e6 Polish delete mid node challenge and solution
Update edge cases and tests.
2016-06-18 11:46:00 -04:00
Donne MartinandGitHub 99239dda62 Merge pull request #61 from donnemartin/develop
Polish linked list challenge and solution
2016-06-12 23:30:35 -04:00
Donne Martin 58409ac286 Polish linked list challenge and solution
Update algorithm discussion, solution, and constraints.
2016-06-12 23:29:58 -04:00
Donne MartinandGitHub 1e9ffd3f33 Merge pull request #60 from donnemartin/develop
Polish kth to last element challenge and solution
2016-06-12 23:28:07 -04:00
Donne Martin 90f7505018 Polish kth to last element challenge and solution
Update algorithm discussion and solution.
2016-06-12 23:27:36 -04:00
Donne MartinandGitHub 801e583762 Merge pull request #59 from donnemartin/develop
Polish remove duplicates challenge and solution
2016-06-12 23:26:20 -04:00
Donne Martin 8cc41e23af Polish remove duplicates challenge and solution
Update constraints and algorithm discussion.
2016-06-12 23:25:49 -04:00
Donne MartinandGitHub 94aaedb49f Merge pull request #58 from donnemartin/develop
Polish find loop start challenge and solution
2016-06-12 23:23:18 -04:00
Donne Martin 47e34b10dd Polish find loop start challenge and solution
Change slow and fast nodes equality check from their data value to an object check.
2016-06-12 23:22:27 -04:00
Donne MartinandGitHub 2dd8f4ac55 Merge pull request #57 from donnemartin/develop
Polish unique chars challenge and solution
2016-06-12 23:19:38 -04:00
Donne Martin 895011b685 Polish unique chars challenge and solution
Add None input test case.  Update constraints.
2016-06-12 23:19:09 -04:00
Donne MartinandGitHub 4fc8dbcc32 Merge pull request #56 from donnemartin/develop
Exit out of loop once key is found/removed from hash map
2016-06-12 23:16:55 -04:00
Donne Martin 4c45be5a9e Exit out of loop once key is found/removed from hash map 2016-06-12 23:16:06 -04:00
Donne MartinandGitHub 38fa7aff46 Merge pull request #55 from donnemartin/develop
Update arrays_strings and linked_lists constraints
2016-06-12 23:12:42 -04:00
Donne Martin 9a7958e5b4 Update linked_lists constraints 2016-06-12 23:10:28 -04:00
Donne Martin e1239d8902 Update arrays_strings constraints 2016-06-12 23:06:12 -04:00
Donne Martin 1bbe9c68d5 Merge pull request #54 from donnemartin/develop
Polish permutation challenge and solution
2016-06-05 07:18:54 -04:00
Donne Martin 1656fd50e3 Polish permutation challenge and solution 2016-06-05 07:18:14 -04:00
Donne Martin 730e8a0d67 Merge pull request #53 from donnemartin/develop
Update requirements.txt
2016-06-04 16:10:53 -04:00
Donne Martin 41c7b00a53 Update requirements.txt 2016-06-04 16:10:06 -04:00
Donne Martin b67831e9b8 Merge pull request #52 from donnemartin/develop
Update README intro, install, credits, and contact info
2016-06-04 16:07:10 -04:00
Donne Martin bbaed0ab6b Update README contact info 2016-06-04 16:05:47 -04:00
Donne Martin 97bca96634 Update README intro 2016-06-04 16:04:32 -04:00
Donne Martin f74b048218 Add LeetCode to README credits 2016-06-04 16:03:56 -04:00
Donne Martin 6196947abe Swap install and run instructions order in README 2016-06-04 16:02:06 -04:00
Donne Martin dd44bda6e8 Merge pull request #50 from z123/fix-node-state
Fix issues with node state
2016-06-04 14:08:46 -04:00
Donne Martin 39c4a6dccc Merge pull request #49 from yask123/patch-1
Fix bug in permutations challenge and solution
2016-06-04 13:45:08 -04:00
Donne Martin 50cb6e1a7c Merge pull request #51 from donnemartin/develop
Update constraints for compress challenge and solution
2016-06-04 13:41:33 -04:00
Donne Martin 395264378c Update constraints for compress challenge and solution 2016-06-04 13:40:15 -04:00
Donne Martin ac339645e9 Fix style guide link in CONTRIBUTING.md 2016-05-19 05:10:14 -04:00
Donne Martin a18e0532b0 Merge pull request #48 from KishanBagaria/master
Change `ipython notebook` to `jupyter notebook`
2016-04-22 21:12:20 -04:00
Donne Martin b1a07b6d48 Merge pull request #45 from jaysonfrancis/myfirstpull
Fix typo for func() calls
2016-03-04 07:13:01 -05:00
Donne Martin afcdcc3a6a Rename Sorting section 2016-03-03 08:18:04 -05:00
Donne Martin 358791fbbc Update dfs solution complexity discussion 2016-03-02 07:50:28 -05:00
Donne Martin de0e70de4f Polish bst challenge and solution
Add root is None input test case.  Update time and space complexity discussion.
2016-03-01 07:03:37 -05:00
Donne Martin 56f8ea1e74 Polish merge sort challenge and solution
Add None input test case.  Update space complexity discussion.
2016-02-26 06:52:54 -05:00
Donne Martin 15ed55a7d4 Polish quicksort challenge and solution
Add None input test case.  Remove difficult to read 'Pythonic' solution.  Update space complexity discussion.
2016-02-25 05:49:31 -05:00
Donne Martin 4b5ce09e6c Add None input test case to selection sort challenge 2016-02-25 05:47:26 -05:00
Donne Martin a2b4978c2e Add None input test case to insertion sort 2016-02-25 05:47:15 -05:00
Donne Martin d8ac0b8fc6 Polish selection sort solution 2016-02-24 07:37:31 -05:00
Donne Martin 577ada7896 Polish selection sort challenge and solution 2016-02-24 06:27:54 -05:00
Donne Martin 031f3233a9 Update sort stack challenge unit test 2016-02-23 07:10:18 -05:00
Donne Martin 2b92f51a4e Polish set of stacks challenge 2016-02-23 06:13:05 -05:00
Donne Martin ba14cb0417 Add intermediate sort stack solution and test 2016-02-23 06:12:45 -05:00
Donne Martin d9b2d7144e Polish set of stacks solution 2016-02-21 16:21:37 -05:00
Donne Martin 7222f71f59 Polish queue list solution 2016-02-21 16:21:05 -05:00
Donne Martin 76da9ec98d Polish n stacks solution 2016-02-21 16:20:29 -05:00
Donne Martin 9c441e9f18 Polish find loop start solution. 2016-02-20 12:53:27 -05:00
Donne Martin 7a166bed67 Polish stack solution. 2016-02-20 08:11:49 -05:00
Donne Martin 08fabdf58d Tweak remove dupes solution to use a single node 'reference'. 2016-02-15 06:29:11 -05:00
Donne Martin 21add6f4f5 Rename list_of_chars to reverse_string. 2016-02-14 06:04:48 -05:00
Donne Martin 27a0bf786e Update remove dupes unit test to handle more cases. 2016-02-10 06:33:30 -05:00
Donne Martin 71cb434de7 Polish delete mid solution. 2016-02-10 06:32:31 -05:00
Donne Martin feb3ed3129 Polish add reverse solution. 2016-02-10 06:30:36 -05:00
Donne Martin b0a091f589 Polish rotation solution. 2016-02-10 06:30:11 -05:00
Donne Martin 75becf1afb Polish permutation solution. 2016-02-10 06:29:50 -05:00
Donne Martin 186a192c61 Update array compress unit test to match solution and challenge notebooks. 2016-02-10 06:29:22 -05:00
Donne Martin fe4c118812 Update final char case and unit test for #44. 2016-02-09 07:20:07 -05:00
Donne Martin af2f461239 Merge branch 'develop'
* develop:
  Update compress challenge based on #44.
2016-02-09 07:02:34 -05:00
Donne Martin 2084bbf5c9 Update compress challenge based on #44. 2016-02-09 07:00:41 -05:00
Donne Martin b53d7ba9ef Merge pull request #44 from donnemartin/develop
Polish compress string solution
2016-02-09 06:54:46 -05:00
Donne Martin 4953e6c114 Update compress solution so AAAAB becomes A4B.
Previously the solution would yield A4B1, which doesn't have as much compression.
2016-02-09 06:52:32 -05:00
Donne Martin 9bf96eabaa Polish compress solution. 2016-02-09 06:49:29 -05:00
Donne Martin 81f0f0c1af Merge branch 'irheart-reverse_string/check-inplace'
* irheart-reverse_string/check-inplace:
  Add in-place reverse string test to solution notebook.
  Test for inplace modification of the array.
2016-02-09 04:47:10 -05:00
Donne Martin eee55dfa80 Add in-place reverse string test to solution notebook. 2016-02-09 04:46:44 -05:00
Donne Martin 363105cfc0 Merge branch 'reverse_string/check-inplace' of git://github.com/irheart/interactive-coding-challenges into irheart-reverse_string/check-inplace
* 'reverse_string/check-inplace' of git://github.com/irheart/interactive-coding-challenges:
  Test for inplace modification of the array.
2016-02-09 04:40:31 -05:00
Donne Martin 784730685b Merge branch 'feature/polish-compression' into develop
* feature/polish-compression:
  Rename alt compress solution.
  Fix indentation.
  Update author to hashhar's challenge.
2016-02-09 04:36:07 -05:00
Donne Martin 668864aa62 Rename alt compress solution. 2016-02-09 04:35:09 -05:00
Donne Martin d9b5c57d5e Fix indentation. 2016-02-09 04:33:48 -05:00
Donne Martin 53d0ce9142 Update author to hashhar's challenge. 2016-02-09 04:33:09 -05:00
Donne Martin 06dbb2e3f7 Merge pull request #39 from hashhar/better-compression
Code concerning Issue #38
2016-02-09 04:29:06 -05:00
Donne Martin 7063af0022 Add .gitattributes. 2015-12-16 06:59:25 -05:00
Donne Martin fbf546ccc3 Update template notebook headers to render properly on nbviewer, update author link. 2015-12-11 05:19:33 -05:00
Donne Martin 5d1f8ae79e Add bst successor challenge. 2015-12-02 07:14:34 -05:00
Donne Martin 89d12dbeb7 Merge pull request #37 from superxiao/master
Fix check_balance solution for a new test case
2015-10-27 20:38:00 -04:00
Donne Martin 6276624914 Merge branch 'master' of https://github.com/donnemartin/interactive-coding-challenges
* 'master' of https://github.com/donnemartin/interactive-coding-challenges:
  minor phrasing fix
2015-08-23 08:08:58 -04:00
Donne Martin 1f45095f60 Added three state variable visit_state which will be useful for more advanced challenges such as topological sort. 2015-08-23 08:08:46 -04:00