├── .babelrc ├── .gitignore ├── README.md ├── misc ├── binarySearch.js ├── findDuplicateValueArray.js ├── mergeLinkedLists.js ├── palindrome.js ├── palindrome.spec.js ├── primes-sieveOfEratosthenes.js ├── rainWater.js ├── reverseArray.js ├── reverseBetweenLinkedList.js ├── reverseLinkedList.js ├── reverseNumber.js ├── shuffleArray.js ├── solveSudoku.js ├── sorting │ ├── bubbleSort.js │ ├── bubbleSort.spec.js │ ├── countingSort.js │ ├── mergeSort.js │ ├── mergeSort.spec.js │ └── performance.js ├── sudokuValidator.js └── treePathSum.js ├── package.json ├── questions-specs ├── chapter01-strings-arrays │ ├── 1.01-isUnique.js │ ├── 1.01-isUnique.spec.js │ ├── 1.02-checkPermutations.js │ ├── 1.02-checkPermutations.spec.js │ ├── 1.03-URLify.js │ ├── 1.03-URLify.spec.js │ ├── 1.04-palindromePermutation.js │ ├── 1.04-palindromePermutation.spec.js │ ├── 1.05-oneAway.js │ ├── 1.05-oneAways.spec.js │ ├── 1.06-stringCompression.js │ ├── 1.06-stringCompression.spec.js │ ├── 1.07-rotateMatrix.js │ ├── 1.07-rotateMatrix.spec.js │ ├── 1.08-zeroMatrix.js │ ├── 1.08-zeroMatrix.spec.js │ ├── 1.09-stringRotation.js │ └── 1.09-stringRotation.spec.js ├── chapter02-linkedLists │ ├── 2.01-removeDupes.js │ ├── 2.01-removeDupes.spec.js │ ├── 2.02-KthToLast.js │ ├── 2.02-KthToLast.spec.js │ ├── 2.03-deleteMiddleNode.js │ ├── 2.03-deleteMiddleNode.spec.js │ ├── 2.04-partition.js │ ├── 2.04-partition.spec.js │ ├── 2.05-sumList.js │ ├── 2.05-sumList.spec.js │ ├── 2.06-linkedListPalindrome.js │ ├── 2.06-linkedListPalindrome.spec.js │ ├── 2.07-intersection.js │ ├── 2.07-intersection.spec.js │ ├── 2.08-circularList.js │ ├── 2.08-circularList.spec.js │ └── helpers.js ├── chapter03-stacks-queues │ ├── 3.01-threeStacksInOne.js │ ├── 3.01-threeStacksInOne.spec.js │ ├── 3.02-stackMin.js │ ├── 3.02-stackMin.spec.js │ ├── 3.03-setOfStacks.js │ ├── 3.03-setOfStacks.spec.js │ ├── 3.04-queueViaStacks.js │ ├── 3.04-queueViaStacks.spec.js │ ├── 3.05-sortStack.js │ ├── 3.05-sortStack.spec.js │ ├── 3.06-animalShelter.js │ └── 3.06-animalShelter.spec.js ├── chapter04-trees-graphs │ ├── 4.01-routesBetweenNodes.js │ ├── 4.01-routesBetweenNodes.spec.js │ ├── 4.02-minimalHeightBST.js │ ├── 4.02-minimalHeightBST.spec.js │ ├── 4.03-listOfDepthBT.js │ ├── 4.03-listOfDepthBT.spec.js │ ├── 4.04-validateBalancedBT.js │ ├── 4.04-validateBalancedBT.spec.js │ ├── 4.05-validateBST.js │ ├── 4.05-validateBST.spec.js │ ├── 4.06-findSuccessor.js │ ├── 4.06-findSuccessor.spec.js │ ├── 4.07-Book-Solutions-buildOrder │ │ ├── DFS │ │ │ ├── BuildOrder.js │ │ │ ├── Graph.js │ │ │ ├── Project.js │ │ │ └── buildOrder.spec.js │ │ └── Edge-Removal │ │ │ ├── BuildOrder.js │ │ │ ├── Graph.js │ │ │ ├── Project.js │ │ │ └── buildOrder.spec.js │ ├── 4.07-buildOrder.js │ ├── 4.07-buildOrder.spec.js │ ├── 4.08-firstCommonAncestor.js │ ├── 4.08-firstCommonAncestor.spec.js │ ├── 4.09-BSTsequences.js │ ├── 4.09-BSTsequences.spec.js │ ├── 4.10-checkIfSubtree.js │ ├── 4.10-checkIfSubtree.spec.js │ ├── 4.11-getRandomNodeBT.js │ ├── 4.11-getRandomNodeBT.spec.js │ ├── 4.12-pathsWithSumX.js │ ├── 4.12-pathsWithSumX.spec.js │ └── helpers.js ├── chapter08-recursion-and-dynamic-programming │ ├── 8.01-tripleStepStaircase.js │ ├── 8.02-robotInGrid.js │ ├── 8.03-magicIndex.js │ ├── 8.04-powerSet.js │ ├── 8.05-recursiveMultiply.js │ ├── 8.06-towersOfHanoi.js │ ├── 8.07-permutationsWithoutDupes.js │ ├── 8.08-permutationsWithDupes.js │ ├── 8.09-parensCombinations.js │ ├── 8.10-paintFill.js │ ├── 8.11-coins.js │ ├── 8.12-eightQueens.js │ ├── 8.13-stackOfBoxes.js │ ├── 8.14-booleanEvaluation.js │ └── fibonacci.js └── chapter16-moderate │ ├── 16.01-numberSwapper.js │ ├── 16.02-wordFrequency.js │ ├── 16.03-linesIntersection.js │ ├── 16.04-ticTacToeWin.js │ └── 16.06-smallestDifference.js └── test └── mocha.opts /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "plugins": ["transform-es2015-modules-commonjs"] 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .DS_Store 3 | yarn.lock 4 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/README.md -------------------------------------------------------------------------------- /misc/binarySearch.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/misc/binarySearch.js -------------------------------------------------------------------------------- /misc/findDuplicateValueArray.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/misc/findDuplicateValueArray.js -------------------------------------------------------------------------------- /misc/mergeLinkedLists.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/misc/mergeLinkedLists.js -------------------------------------------------------------------------------- /misc/palindrome.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/misc/palindrome.js -------------------------------------------------------------------------------- /misc/palindrome.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/misc/palindrome.spec.js -------------------------------------------------------------------------------- /misc/primes-sieveOfEratosthenes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/misc/primes-sieveOfEratosthenes.js -------------------------------------------------------------------------------- /misc/rainWater.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/misc/rainWater.js -------------------------------------------------------------------------------- /misc/reverseArray.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/misc/reverseArray.js -------------------------------------------------------------------------------- /misc/reverseBetweenLinkedList.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/misc/reverseBetweenLinkedList.js -------------------------------------------------------------------------------- /misc/reverseLinkedList.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/misc/reverseLinkedList.js -------------------------------------------------------------------------------- /misc/reverseNumber.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/misc/reverseNumber.js -------------------------------------------------------------------------------- /misc/shuffleArray.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/misc/shuffleArray.js -------------------------------------------------------------------------------- /misc/solveSudoku.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/misc/solveSudoku.js -------------------------------------------------------------------------------- /misc/sorting/bubbleSort.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/misc/sorting/bubbleSort.js -------------------------------------------------------------------------------- /misc/sorting/bubbleSort.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/misc/sorting/bubbleSort.spec.js -------------------------------------------------------------------------------- /misc/sorting/countingSort.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/misc/sorting/countingSort.js -------------------------------------------------------------------------------- /misc/sorting/mergeSort.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/misc/sorting/mergeSort.js -------------------------------------------------------------------------------- /misc/sorting/mergeSort.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/misc/sorting/mergeSort.spec.js -------------------------------------------------------------------------------- /misc/sorting/performance.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/misc/sorting/performance.js -------------------------------------------------------------------------------- /misc/sudokuValidator.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/misc/sudokuValidator.js -------------------------------------------------------------------------------- /misc/treePathSum.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/misc/treePathSum.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/package.json -------------------------------------------------------------------------------- /questions-specs/chapter01-strings-arrays/1.01-isUnique.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter01-strings-arrays/1.01-isUnique.js -------------------------------------------------------------------------------- /questions-specs/chapter01-strings-arrays/1.01-isUnique.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter01-strings-arrays/1.01-isUnique.spec.js -------------------------------------------------------------------------------- /questions-specs/chapter01-strings-arrays/1.02-checkPermutations.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter01-strings-arrays/1.02-checkPermutations.js -------------------------------------------------------------------------------- /questions-specs/chapter01-strings-arrays/1.02-checkPermutations.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter01-strings-arrays/1.02-checkPermutations.spec.js -------------------------------------------------------------------------------- /questions-specs/chapter01-strings-arrays/1.03-URLify.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter01-strings-arrays/1.03-URLify.js -------------------------------------------------------------------------------- /questions-specs/chapter01-strings-arrays/1.03-URLify.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter01-strings-arrays/1.03-URLify.spec.js -------------------------------------------------------------------------------- /questions-specs/chapter01-strings-arrays/1.04-palindromePermutation.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter01-strings-arrays/1.04-palindromePermutation.js -------------------------------------------------------------------------------- /questions-specs/chapter01-strings-arrays/1.04-palindromePermutation.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter01-strings-arrays/1.04-palindromePermutation.spec.js -------------------------------------------------------------------------------- /questions-specs/chapter01-strings-arrays/1.05-oneAway.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter01-strings-arrays/1.05-oneAway.js -------------------------------------------------------------------------------- /questions-specs/chapter01-strings-arrays/1.05-oneAways.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter01-strings-arrays/1.05-oneAways.spec.js -------------------------------------------------------------------------------- /questions-specs/chapter01-strings-arrays/1.06-stringCompression.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter01-strings-arrays/1.06-stringCompression.js -------------------------------------------------------------------------------- /questions-specs/chapter01-strings-arrays/1.06-stringCompression.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter01-strings-arrays/1.06-stringCompression.spec.js -------------------------------------------------------------------------------- /questions-specs/chapter01-strings-arrays/1.07-rotateMatrix.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter01-strings-arrays/1.07-rotateMatrix.js -------------------------------------------------------------------------------- /questions-specs/chapter01-strings-arrays/1.07-rotateMatrix.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter01-strings-arrays/1.07-rotateMatrix.spec.js -------------------------------------------------------------------------------- /questions-specs/chapter01-strings-arrays/1.08-zeroMatrix.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter01-strings-arrays/1.08-zeroMatrix.js -------------------------------------------------------------------------------- /questions-specs/chapter01-strings-arrays/1.08-zeroMatrix.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter01-strings-arrays/1.08-zeroMatrix.spec.js -------------------------------------------------------------------------------- /questions-specs/chapter01-strings-arrays/1.09-stringRotation.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter01-strings-arrays/1.09-stringRotation.js -------------------------------------------------------------------------------- /questions-specs/chapter01-strings-arrays/1.09-stringRotation.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter01-strings-arrays/1.09-stringRotation.spec.js -------------------------------------------------------------------------------- /questions-specs/chapter02-linkedLists/2.01-removeDupes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter02-linkedLists/2.01-removeDupes.js -------------------------------------------------------------------------------- /questions-specs/chapter02-linkedLists/2.01-removeDupes.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter02-linkedLists/2.01-removeDupes.spec.js -------------------------------------------------------------------------------- /questions-specs/chapter02-linkedLists/2.02-KthToLast.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter02-linkedLists/2.02-KthToLast.js -------------------------------------------------------------------------------- /questions-specs/chapter02-linkedLists/2.02-KthToLast.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter02-linkedLists/2.02-KthToLast.spec.js -------------------------------------------------------------------------------- /questions-specs/chapter02-linkedLists/2.03-deleteMiddleNode.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter02-linkedLists/2.03-deleteMiddleNode.js -------------------------------------------------------------------------------- /questions-specs/chapter02-linkedLists/2.03-deleteMiddleNode.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter02-linkedLists/2.03-deleteMiddleNode.spec.js -------------------------------------------------------------------------------- /questions-specs/chapter02-linkedLists/2.04-partition.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter02-linkedLists/2.04-partition.js -------------------------------------------------------------------------------- /questions-specs/chapter02-linkedLists/2.04-partition.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter02-linkedLists/2.04-partition.spec.js -------------------------------------------------------------------------------- /questions-specs/chapter02-linkedLists/2.05-sumList.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter02-linkedLists/2.05-sumList.js -------------------------------------------------------------------------------- /questions-specs/chapter02-linkedLists/2.05-sumList.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter02-linkedLists/2.05-sumList.spec.js -------------------------------------------------------------------------------- /questions-specs/chapter02-linkedLists/2.06-linkedListPalindrome.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter02-linkedLists/2.06-linkedListPalindrome.js -------------------------------------------------------------------------------- /questions-specs/chapter02-linkedLists/2.06-linkedListPalindrome.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter02-linkedLists/2.06-linkedListPalindrome.spec.js -------------------------------------------------------------------------------- /questions-specs/chapter02-linkedLists/2.07-intersection.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter02-linkedLists/2.07-intersection.js -------------------------------------------------------------------------------- /questions-specs/chapter02-linkedLists/2.07-intersection.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter02-linkedLists/2.07-intersection.spec.js -------------------------------------------------------------------------------- /questions-specs/chapter02-linkedLists/2.08-circularList.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter02-linkedLists/2.08-circularList.js -------------------------------------------------------------------------------- /questions-specs/chapter02-linkedLists/2.08-circularList.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter02-linkedLists/2.08-circularList.spec.js -------------------------------------------------------------------------------- /questions-specs/chapter02-linkedLists/helpers.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter02-linkedLists/helpers.js -------------------------------------------------------------------------------- /questions-specs/chapter03-stacks-queues/3.01-threeStacksInOne.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter03-stacks-queues/3.01-threeStacksInOne.js -------------------------------------------------------------------------------- /questions-specs/chapter03-stacks-queues/3.01-threeStacksInOne.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter03-stacks-queues/3.01-threeStacksInOne.spec.js -------------------------------------------------------------------------------- /questions-specs/chapter03-stacks-queues/3.02-stackMin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter03-stacks-queues/3.02-stackMin.js -------------------------------------------------------------------------------- /questions-specs/chapter03-stacks-queues/3.02-stackMin.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter03-stacks-queues/3.02-stackMin.spec.js -------------------------------------------------------------------------------- /questions-specs/chapter03-stacks-queues/3.03-setOfStacks.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter03-stacks-queues/3.03-setOfStacks.js -------------------------------------------------------------------------------- /questions-specs/chapter03-stacks-queues/3.03-setOfStacks.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter03-stacks-queues/3.03-setOfStacks.spec.js -------------------------------------------------------------------------------- /questions-specs/chapter03-stacks-queues/3.04-queueViaStacks.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter03-stacks-queues/3.04-queueViaStacks.js -------------------------------------------------------------------------------- /questions-specs/chapter03-stacks-queues/3.04-queueViaStacks.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter03-stacks-queues/3.04-queueViaStacks.spec.js -------------------------------------------------------------------------------- /questions-specs/chapter03-stacks-queues/3.05-sortStack.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter03-stacks-queues/3.05-sortStack.js -------------------------------------------------------------------------------- /questions-specs/chapter03-stacks-queues/3.05-sortStack.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter03-stacks-queues/3.05-sortStack.spec.js -------------------------------------------------------------------------------- /questions-specs/chapter03-stacks-queues/3.06-animalShelter.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter03-stacks-queues/3.06-animalShelter.js -------------------------------------------------------------------------------- /questions-specs/chapter03-stacks-queues/3.06-animalShelter.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter03-stacks-queues/3.06-animalShelter.spec.js -------------------------------------------------------------------------------- /questions-specs/chapter04-trees-graphs/4.01-routesBetweenNodes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter04-trees-graphs/4.01-routesBetweenNodes.js -------------------------------------------------------------------------------- /questions-specs/chapter04-trees-graphs/4.01-routesBetweenNodes.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter04-trees-graphs/4.01-routesBetweenNodes.spec.js -------------------------------------------------------------------------------- /questions-specs/chapter04-trees-graphs/4.02-minimalHeightBST.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter04-trees-graphs/4.02-minimalHeightBST.js -------------------------------------------------------------------------------- /questions-specs/chapter04-trees-graphs/4.02-minimalHeightBST.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter04-trees-graphs/4.02-minimalHeightBST.spec.js -------------------------------------------------------------------------------- /questions-specs/chapter04-trees-graphs/4.03-listOfDepthBT.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter04-trees-graphs/4.03-listOfDepthBT.js -------------------------------------------------------------------------------- /questions-specs/chapter04-trees-graphs/4.03-listOfDepthBT.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter04-trees-graphs/4.03-listOfDepthBT.spec.js -------------------------------------------------------------------------------- /questions-specs/chapter04-trees-graphs/4.04-validateBalancedBT.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter04-trees-graphs/4.04-validateBalancedBT.js -------------------------------------------------------------------------------- /questions-specs/chapter04-trees-graphs/4.04-validateBalancedBT.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter04-trees-graphs/4.04-validateBalancedBT.spec.js -------------------------------------------------------------------------------- /questions-specs/chapter04-trees-graphs/4.05-validateBST.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter04-trees-graphs/4.05-validateBST.js -------------------------------------------------------------------------------- /questions-specs/chapter04-trees-graphs/4.05-validateBST.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter04-trees-graphs/4.05-validateBST.spec.js -------------------------------------------------------------------------------- /questions-specs/chapter04-trees-graphs/4.06-findSuccessor.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter04-trees-graphs/4.06-findSuccessor.js -------------------------------------------------------------------------------- /questions-specs/chapter04-trees-graphs/4.06-findSuccessor.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter04-trees-graphs/4.06-findSuccessor.spec.js -------------------------------------------------------------------------------- /questions-specs/chapter04-trees-graphs/4.07-Book-Solutions-buildOrder/DFS/BuildOrder.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter04-trees-graphs/4.07-Book-Solutions-buildOrder/DFS/BuildOrder.js -------------------------------------------------------------------------------- /questions-specs/chapter04-trees-graphs/4.07-Book-Solutions-buildOrder/DFS/Graph.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter04-trees-graphs/4.07-Book-Solutions-buildOrder/DFS/Graph.js -------------------------------------------------------------------------------- /questions-specs/chapter04-trees-graphs/4.07-Book-Solutions-buildOrder/DFS/Project.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter04-trees-graphs/4.07-Book-Solutions-buildOrder/DFS/Project.js -------------------------------------------------------------------------------- /questions-specs/chapter04-trees-graphs/4.07-Book-Solutions-buildOrder/DFS/buildOrder.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter04-trees-graphs/4.07-Book-Solutions-buildOrder/DFS/buildOrder.spec.js -------------------------------------------------------------------------------- /questions-specs/chapter04-trees-graphs/4.07-Book-Solutions-buildOrder/Edge-Removal/BuildOrder.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter04-trees-graphs/4.07-Book-Solutions-buildOrder/Edge-Removal/BuildOrder.js -------------------------------------------------------------------------------- /questions-specs/chapter04-trees-graphs/4.07-Book-Solutions-buildOrder/Edge-Removal/Graph.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter04-trees-graphs/4.07-Book-Solutions-buildOrder/Edge-Removal/Graph.js -------------------------------------------------------------------------------- /questions-specs/chapter04-trees-graphs/4.07-Book-Solutions-buildOrder/Edge-Removal/Project.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter04-trees-graphs/4.07-Book-Solutions-buildOrder/Edge-Removal/Project.js -------------------------------------------------------------------------------- /questions-specs/chapter04-trees-graphs/4.07-Book-Solutions-buildOrder/Edge-Removal/buildOrder.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter04-trees-graphs/4.07-Book-Solutions-buildOrder/Edge-Removal/buildOrder.spec.js -------------------------------------------------------------------------------- /questions-specs/chapter04-trees-graphs/4.07-buildOrder.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter04-trees-graphs/4.07-buildOrder.js -------------------------------------------------------------------------------- /questions-specs/chapter04-trees-graphs/4.07-buildOrder.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter04-trees-graphs/4.07-buildOrder.spec.js -------------------------------------------------------------------------------- /questions-specs/chapter04-trees-graphs/4.08-firstCommonAncestor.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter04-trees-graphs/4.08-firstCommonAncestor.js -------------------------------------------------------------------------------- /questions-specs/chapter04-trees-graphs/4.08-firstCommonAncestor.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter04-trees-graphs/4.08-firstCommonAncestor.spec.js -------------------------------------------------------------------------------- /questions-specs/chapter04-trees-graphs/4.09-BSTsequences.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter04-trees-graphs/4.09-BSTsequences.js -------------------------------------------------------------------------------- /questions-specs/chapter04-trees-graphs/4.09-BSTsequences.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter04-trees-graphs/4.09-BSTsequences.spec.js -------------------------------------------------------------------------------- /questions-specs/chapter04-trees-graphs/4.10-checkIfSubtree.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter04-trees-graphs/4.10-checkIfSubtree.js -------------------------------------------------------------------------------- /questions-specs/chapter04-trees-graphs/4.10-checkIfSubtree.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter04-trees-graphs/4.10-checkIfSubtree.spec.js -------------------------------------------------------------------------------- /questions-specs/chapter04-trees-graphs/4.11-getRandomNodeBT.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter04-trees-graphs/4.11-getRandomNodeBT.js -------------------------------------------------------------------------------- /questions-specs/chapter04-trees-graphs/4.11-getRandomNodeBT.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter04-trees-graphs/4.11-getRandomNodeBT.spec.js -------------------------------------------------------------------------------- /questions-specs/chapter04-trees-graphs/4.12-pathsWithSumX.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter04-trees-graphs/4.12-pathsWithSumX.js -------------------------------------------------------------------------------- /questions-specs/chapter04-trees-graphs/4.12-pathsWithSumX.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter04-trees-graphs/4.12-pathsWithSumX.spec.js -------------------------------------------------------------------------------- /questions-specs/chapter04-trees-graphs/helpers.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter04-trees-graphs/helpers.js -------------------------------------------------------------------------------- /questions-specs/chapter08-recursion-and-dynamic-programming/8.01-tripleStepStaircase.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter08-recursion-and-dynamic-programming/8.01-tripleStepStaircase.js -------------------------------------------------------------------------------- /questions-specs/chapter08-recursion-and-dynamic-programming/8.02-robotInGrid.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter08-recursion-and-dynamic-programming/8.02-robotInGrid.js -------------------------------------------------------------------------------- /questions-specs/chapter08-recursion-and-dynamic-programming/8.03-magicIndex.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter08-recursion-and-dynamic-programming/8.03-magicIndex.js -------------------------------------------------------------------------------- /questions-specs/chapter08-recursion-and-dynamic-programming/8.04-powerSet.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter08-recursion-and-dynamic-programming/8.04-powerSet.js -------------------------------------------------------------------------------- /questions-specs/chapter08-recursion-and-dynamic-programming/8.05-recursiveMultiply.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter08-recursion-and-dynamic-programming/8.05-recursiveMultiply.js -------------------------------------------------------------------------------- /questions-specs/chapter08-recursion-and-dynamic-programming/8.06-towersOfHanoi.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter08-recursion-and-dynamic-programming/8.06-towersOfHanoi.js -------------------------------------------------------------------------------- /questions-specs/chapter08-recursion-and-dynamic-programming/8.07-permutationsWithoutDupes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter08-recursion-and-dynamic-programming/8.07-permutationsWithoutDupes.js -------------------------------------------------------------------------------- /questions-specs/chapter08-recursion-and-dynamic-programming/8.08-permutationsWithDupes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter08-recursion-and-dynamic-programming/8.08-permutationsWithDupes.js -------------------------------------------------------------------------------- /questions-specs/chapter08-recursion-and-dynamic-programming/8.09-parensCombinations.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter08-recursion-and-dynamic-programming/8.09-parensCombinations.js -------------------------------------------------------------------------------- /questions-specs/chapter08-recursion-and-dynamic-programming/8.10-paintFill.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter08-recursion-and-dynamic-programming/8.10-paintFill.js -------------------------------------------------------------------------------- /questions-specs/chapter08-recursion-and-dynamic-programming/8.11-coins.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter08-recursion-and-dynamic-programming/8.11-coins.js -------------------------------------------------------------------------------- /questions-specs/chapter08-recursion-and-dynamic-programming/8.12-eightQueens.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter08-recursion-and-dynamic-programming/8.12-eightQueens.js -------------------------------------------------------------------------------- /questions-specs/chapter08-recursion-and-dynamic-programming/8.13-stackOfBoxes.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | -------------------------------------------------------------------------------- /questions-specs/chapter08-recursion-and-dynamic-programming/8.14-booleanEvaluation.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | -------------------------------------------------------------------------------- /questions-specs/chapter08-recursion-and-dynamic-programming/fibonacci.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter08-recursion-and-dynamic-programming/fibonacci.js -------------------------------------------------------------------------------- /questions-specs/chapter16-moderate/16.01-numberSwapper.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter16-moderate/16.01-numberSwapper.js -------------------------------------------------------------------------------- /questions-specs/chapter16-moderate/16.02-wordFrequency.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter16-moderate/16.02-wordFrequency.js -------------------------------------------------------------------------------- /questions-specs/chapter16-moderate/16.03-linesIntersection.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter16-moderate/16.03-linesIntersection.js -------------------------------------------------------------------------------- /questions-specs/chapter16-moderate/16.04-ticTacToeWin.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | -------------------------------------------------------------------------------- /questions-specs/chapter16-moderate/16.06-smallestDifference.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harryttd/Cracking-the-Coding-Interview-Javascript-Solutions-CTCI/HEAD/questions-specs/chapter16-moderate/16.06-smallestDifference.js -------------------------------------------------------------------------------- /test/mocha.opts: -------------------------------------------------------------------------------- 1 | **/*.spec.js 2 | --require=babel-register 3 | --------------------------------------------------------------------------------