8 files changed
+8
-8
lines changedSubmodule JavaScript updated 10 files
- README.md+10-3
- lib/data-structures/chapter-2/2_1.js+23
- lib/data-structures/chapter-2/2_2.js+19
- lib/data-structures/chapter-2/2_3.js+57
- lib/data-structures/chapter-2/2_8.js+28
- lib/data-structures/chapter-2/helper.js+9
- test/data-structures/chapter-2/2_1_Spec.js+24
- test/data-structures/chapter-2/2_2_Spec.js+23
- test/data-structures/chapter-2/2_3_Spec.js+32
- test/data-structures/chapter-2/2_8_Spec.js+25
Submodule JavaScript-ES2015 updated 17 files
- src/chapter7/q1/BlackJackCard.js+43
- src/chapter7/q1/BlackJackGameAutomator.js+117
- src/chapter7/q1/BlackJackHand.js+61
- src/chapter7/q1/Card.js+46
- src/chapter7/q1/Deck.js+67
- src/chapter7/q1/Hand.js+20
- src/chapter7/q1/Suit.js+7
- src/chapter7/q1/ch7-q1.js+44
- src/chapter7/q2/Call.js+46
- src/chapter7/q2/CallHandler.js+103
- src/chapter7/q2/Caller.js+6
- src/chapter7/q2/Director.js+9
- src/chapter7/q2/Employee.js+68
- src/chapter7/q2/Manager.js+9
- src/chapter7/q2/Rank.js+18
- src/chapter7/q2/Respondent.js+9
- src/chapter7/q2/ch7-q2.js+9
- Chap_1_Arrays_and_Strings/.DS_Store
- Chap_1_Arrays_and_Strings/Q1_02_Solution2_Check_Permutation.rb+18
- Chap_1_Arrays_and_Strings/Q1_05_One_Array.rb-23
- Chap_1_Arrays_and_Strings/Q1_05_One_Away.rb+34
- Chap_1_Arrays_and_Strings/Q1_06_String_Compression.rb+9-22
- Chap_1_Arrays_and_Strings/array_and_string_spec/Q1_01_Is_Unique_Spec.rb+1-1
- Chap_1_Arrays_and_Strings/array_and_string_spec/Q1_02_Check_Permutation2_Spec.rb+26
- Chap_1_Arrays_and_Strings/array_and_string_spec/Q1_02_Check_Permutation_Spec.rb+1-1
- Chap_1_Arrays_and_Strings/array_and_string_spec/Q1_03_URLify_Spec.rb+1-1
- Chap_1_Arrays_and_Strings/array_and_string_spec/Q1_05_One_Away_Spec.rb+10-5
- Chap_1_Arrays_and_Strings/array_and_string_spec/Q1_06_String_Compression_Spec.rb+1-1
- Chap_1_Arrays_and_Strings/array_and_string_spec/Q1_07_Rotate_Matrix_Spec.rb+1-1
- Chap_1_Arrays_and_Strings/array_and_string_spec/Q1_08_Zero_Matrix_Spec.rb+1-1
- Chap_1_Arrays_and_Strings/array_and_string_spec/Q1_09_String_Rotation_Spec.rb+1-1
- Chap_3_Stacks_and_Queues/stacks_and_queue_spec/Q3_01_Three_In_One_Spec.rb+1-1
- Chap_3_Stacks_and_Queues/stacks_and_queue_spec/Q3_02_Stack_Min_Spec.rb+1-1
- Chap_3_Stacks_and_Queues/stacks_and_queue_spec/Q3_03_Stack_of_Plates_Spec.rb+1-1
- README.md+1-1
- .gitignore+5
- Ch 1. Arrays and Strings/Ch 1. Arrays and Strings.playground/Pages/1.1 Is Unique.xcplaygroundpage/Contents.swift+30
- Ch 1. Arrays and Strings/Ch 1. Arrays and Strings.playground/Pages/1.2 Check Permutation.xcplaygroundpage/Contents.swift+29
- Ch 1. Arrays and Strings/Ch 1. Arrays and Strings.playground/Pages/1.3 URLify.xcplaygroundpage/Contents.swift+40
- Ch 1. Arrays and Strings/Ch 1. Arrays and Strings.playground/Pages/1.4 Palindrome Permutation.xcplaygroundpage/Contents.swift+30
- Ch 1. Arrays and Strings/Ch 1. Arrays and Strings.playground/Pages/1.5 One Away.xcplaygroundpage/Contents.swift+44
- Ch 1. Arrays and Strings/Ch 1. Arrays and Strings.playground/Pages/1.6 String Compression.xcplaygroundpage/Contents.swift+42
- Ch 1. Arrays and Strings/Ch 1. Arrays and Strings.playground/Pages/1.7 Rotate Matrix.xcplaygroundpage/Contents.swift+27
- Ch 1. Arrays and Strings/Ch 1. Arrays and Strings.playground/Pages/1.8 Zero Matrix.xcplaygroundpage/Contents.swift+47
- Ch 1. Arrays and Strings/Ch 1. Arrays and Strings.playground/Pages/1.9 String Rotation.xcplaygroundpage/Contents.swift+19
- Ch 1. Arrays and Strings/Ch 1. Arrays and Strings.playground/Sources/ArraySearching.swift+82
- Ch 1. Arrays and Strings/Ch 1. Arrays and Strings.playground/Sources/FoundationExtensionsSwift.swift+473
- Ch 1. Arrays and Strings/Ch 1. Arrays and Strings.playground/Sources/IndicesExtensions.swift+65
- Ch 1. Arrays and Strings/Ch 1. Arrays and Strings.playground/contents.xcplayground+14
- Ch 1. Arrays and Strings/Ch 1. Arrays and Strings.playground/playground.xcworkspace/contents.xcworkspacedata+7
- Ch 2. Linked Lists/Ch 2. Linked Lists.playground/Pages/2.1 Remove Duplicates.xcplaygroundpage/Contents.swift+49
- Ch 2. Linked Lists/Ch 2. Linked Lists.playground/Pages/2.2 Find Kth to Last Element.xcplaygroundpage/Contents.swift+26
- Ch 2. Linked Lists/Ch 2. Linked Lists.playground/Pages/2.3 Delete Middle Node.xcplaygroundpage/Contents.swift+77
- Ch 2. Linked Lists/Ch 2. Linked Lists.playground/Pages/2.4 Partition.xcplaygroundpage/Contents.swift+51
- Ch 2. Linked Lists/Ch 2. Linked Lists.playground/Pages/2.5 Sum Lists.xcplaygroundpage/Contents.swift+104
- Ch 2. Linked Lists/Ch 2. Linked Lists.playground/Pages/2.6 List is Palindrome .xcplaygroundpage/Contents.swift+28
- Ch 2. Linked Lists/Ch 2. Linked Lists.playground/Pages/2.7 Lists Intersect.xcplaygroundpage/Contents.swift+34
- Ch 2. Linked Lists/Ch 2. Linked Lists.playground/Pages/2.8 Loop Detection.xcplaygroundpage/Contents.swift+53
- Ch 2. Linked Lists/Ch 2. Linked Lists.playground/Sources/ApplyConcurrently.swift+28
- Ch 2. Linked Lists/Ch 2. Linked Lists.playground/Sources/FoundationExtensions.swift+73
- Ch 2. Linked Lists/Ch 2. Linked Lists.playground/Sources/List.swift+271
- Ch 2. Linked Lists/Ch 2. Linked Lists.playground/Sources/MutableList.swift+76
- Ch 2. Linked Lists/Ch 2. Linked Lists.playground/Sources/RandomIntegerExtensions.swift+54
- Ch 2. Linked Lists/Ch 2. Linked Lists.playground/contents.xcplayground+14
- Ch 2. Linked Lists/Ch 2. Linked Lists.playground/playground.xcworkspace/contents.xcworkspacedata+7
- Ch 3. Stacks and Queues/Ch 3. Stacks and Queues.playground/Pages/3.1 Three in One.xcplaygroundpage/Contents.swift+71
- Ch 3. Stacks and Queues/Ch 3. Stacks and Queues.playground/Pages/3.2 Stack Min.xcplaygroundpage/Contents.swift+62
- Ch 3. Stacks and Queues/Ch 3. Stacks and Queues.playground/Pages/3.3 Stack of Plates.xcplaygroundpage/Contents.swift+114
- Ch 3. Stacks and Queues/Ch 3. Stacks and Queues.playground/Pages/3.4 Queue via Stacks.xcplaygroundpage/Contents.swift+62
- Ch 3. Stacks and Queues/Ch 3. Stacks and Queues.playground/Pages/3.5 Sort Stack.xcplaygroundpage/Contents.swift+69
- Ch 3. Stacks and Queues/Ch 3. Stacks and Queues.playground/Sources/FoundationExtensionsSwift.swift+525
- Ch 3. Stacks and Queues/Ch 3. Stacks and Queues.playground/Sources/Stack.swift+34
- Ch 3. Stacks and Queues/Ch 3. Stacks and Queues.playground/contents.xcplayground+10
- Ch 3. Stacks and Queues/Ch 3. Stacks and Queues.playground/playground.xcworkspace/contents.xcworkspacedata+7
- Ch 4. Trees and Graphs/Ch 4. Trees and Graphs.playground/Pages/4.1 Route Between Nodes.xcplaygroundpage/Contents.swift+79
- Ch 4. Trees and Graphs/Ch 4. Trees and Graphs.playground/Pages/4.2 Minimal Tree.xcplaygroundpage/Contents.swift+30
- Ch 4. Trees and Graphs/Ch 4. Trees and Graphs.playground/Pages/4.3 List of Depths.xcplaygroundpage/Contents.swift+47
- Ch 4. Trees and Graphs/Ch 4. Trees and Graphs.playground/Pages/4.4 Check Balanced.xcplaygroundpage/Contents.swift+46
- Ch 4. Trees and Graphs/Ch 4. Trees and Graphs.playground/Pages/4.5 Validate BST.xcplaygroundpage/Contents.swift+84
- Ch 4. Trees and Graphs/Ch 4. Trees and Graphs.playground/Pages/4.6 Successor.xcplaygroundpage/Contents.swift+42
- Ch 4. Trees and Graphs/Ch 4. Trees and Graphs.playground/Pages/4.7 Build Order.xcplaygroundpage/Contents.swift+110
- Ch 4. Trees and Graphs/Ch 4. Trees and Graphs.playground/Sources/CollectionExtensions.swift+203
- Ch 4. Trees and Graphs/Ch 4. Trees and Graphs.playground/Sources/FoundationExtensions.swift+363
- Ch 4. Trees and Graphs/Ch 4. Trees and Graphs.playground/Sources/Graph.swift+97
- Ch 4. Trees and Graphs/Ch 4. Trees and Graphs.playground/Sources/IntegerExtensions.swift+50
- Ch 4. Trees and Graphs/Ch 4. Trees and Graphs.playground/Sources/RandomIntegerExtensions.swift+112
- Ch 4. Trees and Graphs/Ch 4. Trees and Graphs.playground/Sources/Tree.swift+113
- Ch 4. Trees and Graphs/Ch 4. Trees and Graphs.playground/Sources/TreeClass.swift+115
- Ch 4. Trees and Graphs/Ch 4. Trees and Graphs.playground/contents.xcplayground+12
- Ch 4. Trees and Graphs/Ch 4. Trees and Graphs.playground/playground.xcworkspace/contents.xcworkspacedata+7
- Ch 5. Bit Manipulation/Ch 5. Bit Manipulation.playground/Pages/5.1 Insertion.xcplaygroundpage/Contents.swift+50
- Ch 5. Bit Manipulation/Ch 5. Bit Manipulation.playground/Pages/5.3 Flip Bit to Win.xcplaygroundpage/Contents.swift+55
- Ch 5. Bit Manipulation/Ch 5. Bit Manipulation.playground/Pages/5.4 Next Number.xcplaygroundpage/Contents.swift+105
- Ch 5. Bit Manipulation/Ch 5. Bit Manipulation.playground/Sources/BitExtensions.swift+139
- Ch 5. Bit Manipulation/Ch 5. Bit Manipulation.playground/Sources/IntegerExtensions.swift+51
- Ch 5. Bit Manipulation/Ch 5. Bit Manipulation.playground/contents.xcplayground+8
- Ch 5. Bit Manipulation/Ch 5. Bit Manipulation.playground/playground.xcworkspace/contents.xcworkspacedata+7
- Package.swift-8
- README.md+2-7
- Sources/Chapter1/Chapter1.swift-262
- Sources/Chapter1/main.swift-88
- Ch 1.Arrays And Strings/1.Is Unique/1. Is_unique.cpp+46-14
- Ch 1.Arrays And Strings/2.Check Permutation/1.Check_Permutation.cpp+70-27
- Ch 1.Arrays And Strings/8.Zero_matrix/8.zero_matrix.cpp+7-25
- Ch 4. Trees and Graphs /4-1-Route-Between-Nodes.cpp+82
- Chapter-3-Stacks-and-Queues/C++14/3.2-StackMin.cpp+65
- Chapter-3-Stacks-and-Queues/C++14/3.3-StackOfPlates.cpp+97
- Chapter-3-Stacks-and-Queues/C++14/3.3-StackOfPlatesFU.cpp+189
- Chapter-3-Stacks-and-Queues/C++14/3.4-QueueViaStacks.cpp+67
- Chapter-3-Stacks-and-Queues/C++14/3.5-SortStack.cpp+86
- Chapter-3-Stacks-and-Queues/C++14/3.6-AnimalShelter.cpp+150
- Chapter-3-Stacks-and-Queues/C++14/queue.hpp+82
- Chapter-3-Stacks-and-Queues/C++14/stack.hpp+79
- chapter-2-Linked-Lists/2-4-partition.cpp+38-48
- chapter-8-recursion-and-Dynamic-Programming/8-1-Triple-Step.cpp+35
- chapter-8-recursion-and-Dynamic-Programming/8-3-Magic-Index.cpp+58
- chapter-8-recursion-and-Dynamic-Programming/8-5-Recursive-Multiply.cpp+40
- chapter-8-recursion-and-Dynamic-Programming/8-7-Permutations-without-Dups.cpp+33
- chapter-8-recursion-and-Dynamic-Programming/8-8-Permutation-with-dups.cpp+46
- validateBST.cpp+20
- .travis.yml+9
- README.md+2
- src/chapter01/question1.7/MatrixRotator.php+7-14
- src/chapter04/question4.03/BFSDepthLister.php+22-15
- src/chapter04/question4.03/TreeLevelDepthLister.php+27
- src/chapter10/question10.09/SortedMatrixSearch.php+108
- src/chapter10/question10.11/PeaksAndValleys.php+36
- src/chapter10/question10.11/SortingPeaksAndValleys.php+17
- src/chapter16/question16.04/TicTacToe.php+85
- src/chapter16/question16.05/FactorialZeros.php+5-21
- src/chapter16/question16.25/LRUCache.php+98
- src/chapter16/question16.26/Calculator.php+73
- src/chapter17/question17.01/AddWithoutPlus.php+68
- test/chapter04/question4.03/DepthListerTest.php+3-1
- test/chapter10/question10.09/SortedMatrixSearchTest.php+28
- test/chapter10/question10.11/PeaksAndValleysTest.php+39
- test/chapter10/question10.11/SortingPeaksAndValleysTest.php+39
- test/chapter16/question16.04/TicTacToeTest.php+178
- test/chapter16/question16.05/FactorialZerosTest.php+2
- test/chapter16/question16.25/LRUCacheTest.php+48
- test/chapter16/question16.26/CalculatorTest.php+36
- test/chapter17/question17.01/AddWithoutPlusTest.php+28
0 commit comments