Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/careercup/CtCI-6th-Edition-cpp
/ functions
Functions
434 in github.com/careercup/CtCI-6th-Edition-cpp
⨍
Functions
434
◇
Types & classes
73
↓ 53 callers
Method
size
Chapter-3-Stacks-and-Queues/C++14/stack.hpp:53
↓ 27 callers
Method
empty
Chapter-3-Stacks-and-Queues/3.2_stack_min.cpp:34
↓ 21 callers
Method
push
Chapter-3-Stacks-and-Queues/C++14/stack.hpp:22
↓ 20 callers
Function
printTree
Ch 4. Trees and Graphs/C++14/treetestutils.hpp:21
↓ 16 callers
Function
insert
* [insert helper routine to insert new node at head] * @param head [current head of the list] * @param c [new node's data] */
chapter-2-Linked-Lists/2-6-palindrome.cpp:25
↓ 16 callers
Function
insert
* [insert - insert a new node at head of the list] * @param head [head of the list] * @param data [new node's data] */
chapter-2-Linked-Lists/2-5-add-lists.cpp:35
↓ 13 callers
Method
getParent
Ch 4. Trees and Graphs/C++14/treenode.hpp:15
↓ 13 callers
Method
peek
Chapter-3-Stacks-and-Queues/C++14/3.4-QueueViaStacks.cpp:16
↓ 13 callers
Method
size
Number of used limited stacks
Chapter-3-Stacks-and-Queues/C++14/3.3-StackOfPlatesFU.cpp:47
↓ 12 callers
Method
insert
Ch 4. Trees and Graphs/C++14/4.11-RandomNode.cpp:60
↓ 11 callers
Function
max
returns maximum of two integers */
Chapter-4-tree-and-graph/4.4_check_balanced.cpp:53
↓ 11 callers
Method
pop
Chapter-3-Stacks-and-Queues/C++14/stack.hpp:36
↓ 9 callers
Method
addEdge
Chapter-4-tree-and-graph/4.7_build_order.cpp:34
↓ 8 callers
Method
top
Chapter-3-Stacks-and-Queues/3.2-Stack-Min/Stack.cpp:52
↓ 7 callers
Function
deleteList
* [deleteList Helper routine to delete list] * @param head [head of the list] */
chapter-2-Linked-Lists/2-5-add-lists.cpp:216
↓ 7 callers
Function
printList
* [printList - print the list] * @param head [head of the list] */
chapter-2-Linked-Lists/2-5-add-lists.cpp:45
↓ 6 callers
Method
addEdge
add a directed edge from x to y
Ch 4. Trees and Graphs/4-1-Route-Between-Nodes.cpp:26
↓ 6 callers
Function
bits
Ch 5. Bit Manipulation/C++14/bitutils.hpp:6
↓ 6 callers
Function
printList
* [printList = helper routine to print the list] * @param head [head of the list] */
chapter-2-Linked-Lists/2-6-palindrome.cpp:35
↓ 6 callers
Method
size
Number of limited stacks
Chapter-3-Stacks-and-Queues/C++14/3.3-StackOfPlates.cpp:37
↓ 6 callers
Function
swap
Function to swap values at two pointers */
chapter-8-recursion-and-Dynamic-Programming/8.7_Permutations_without_Dups.cpp:7
↓ 5 callers
Method
dequeueCat
Chapter-3-Stacks-and-Queues/C++14/3.6-AnimalShelter.cpp:108
↓ 5 callers
Function
getDepth
Ch 4. Trees and Graphs/C++14/4.8p-FirstCommonAncestor.cpp:11
↓ 5 callers
Function
insert
chapter-2-Linked-Lists/2-8-loop-detection.cpp:50
↓ 5 callers
Method
isEmpty
Chapter-3-Stacks-and-Queues/C++14/stack.hpp:48
↓ 5 callers
Function
oneEditAway
Ch 1.Arrays And Strings/5.One_Away/5-one-edit-away.cpp:32
↓ 5 callers
Function
translate
Ch 1.Arrays And Strings/5.One_Away/5-one-edit-away.cpp:64
↓ 4 callers
Function
getCharNumber
Ch 1.Arrays And Strings/3.Palindrome Permutation/Palindrome Permutation.cpp:8
↓ 4 callers
Method
isEmpty
Chapter-3-Stacks-and-Queues/C++14/3.4-QueueViaStacks.cpp:30
↓ 4 callers
Method
isEmpty
Chapter-3-Stacks-and-Queues/C++14/3.5-SortStack.cpp:35
↓ 4 callers
Method
min
Chapter-3-Stacks-and-Queues/3.2_stack_min.cpp:28
↓ 4 callers
Function
moveDisk
Function to show the movement of disks
chapter-8-recursion-and-Dynamic-Programming/8.6_Tower_of_Hanoi.cpp:9
↓ 4 callers
Method
pop
Chapter-3-Stacks-and-Queues/C++14/3.5-SortStack.cpp:29
↓ 4 callers
Method
popAt
O(N)
Chapter-3-Stacks-and-Queues/C++14/3.3-StackOfPlatesFU.cpp:36
↓ 4 callers
Function
printList
* [printList Helper routine to print list] * @param head [head of the list] */
chapter-2-Linked-Lists/2-1-remove-dups.cpp:37
↓ 4 callers
Method
push
Chapter-3-Stacks-and-Queues/C++14/3.5-SortStack.cpp:17
↓ 4 callers
Method
setLeftChild
Ch 4. Trees and Graphs/C++14/treenode.hpp:87
↓ 4 callers
Function
subtreeFromArray
Ch 4. Trees and Graphs/C++14/4.2-MinimalTree.cpp:10
↓ 4 callers
Function
sum
Ch 17. Hard/Q17_01_Add_Without_Plus/addWithoutPlus.cpp:4
↓ 3 callers
Method
add
Ch 4. Trees and Graphs/C++14/4.11m-RandomTree.cpp:46
↓ 3 callers
Function
begin
Ch 4. Trees and Graphs/C++14/treenodeiterator.hpp:113
↓ 3 callers
Function
countBits
Ch 5. Bit Manipulation/C++14/bitutils.hpp:12
↓ 3 callers
Method
dequeueAny
Chapter-3-Stacks-and-Queues/C++14/3.6-AnimalShelter.cpp:96
↓ 3 callers
Method
dequeueDog
Chapter-3-Stacks-and-Queues/C++14/3.6-AnimalShelter.cpp:113
↓ 3 callers
Function
end
Ch 4. Trees and Graphs/C++14/treenodeiterator.hpp:119
↓ 3 callers
Function
getCharIndex
Ch 1.Arrays And Strings/4.Palindrome_Permutation/4-pallindrome-permutations.cpp:23
↓ 3 callers
Method
isEmpty
Chapter-3-Stacks-and-Queues/C++14/3.2-StackMin.cpp:37
↓ 3 callers
Function
moveDisksBetweenTwoPoles
Function to implement legal movement between two poles
chapter-8-recursion-and-Dynamic-Programming/8.6_Tower_of_Hanoi.cpp:17
↓ 3 callers
Function
nextBiggerSmaller
Ch 5. Bit Manipulation/C++14/5.4-NextNumber.cpp:9
↓ 3 callers
Function
testGraph
Ch 4. Trees and Graphs/C++14/4.1-RouteBetweenNodes.cpp:90
↓ 3 callers
Method
top
Chapter-3-Stacks-and-Queues/3.2_stack_min.cpp:37
↓ 3 callers
Function
treeFromArray
Ch 4. Trees and Graphs/C++14/treetestutils.hpp:89
↓ 2 callers
Method
add
Chapter-3-Stacks-and-Queues/C++14/3.4-QueueViaStacks.cpp:11
↓ 2 callers
Method
add
Chapter-3-Stacks-and-Queues/C++14/queue.hpp:22
↓ 2 callers
Function
arePermutation
Ch 1.Arrays And Strings/2.Check Permutation/1.Check_Permutation.cpp:6
↓ 2 callers
Function
arePermutation_2
Ch 1.Arrays And Strings/2.Check Permutation/1.Check_Permutation.cpp:28
↓ 2 callers
Function
checkSubtree
Ch 4. Trees and Graphs/C++14/4.10i-CheckSubtree.cpp:16
↓ 2 callers
Function
createMinimalBst
Chapter-4-tree-and-graph/4.10_check_subtree.cpp:9
↓ 2 callers
Method
enqueue
Chapter-3-Stacks-and-Queues/C++14/3.6-AnimalShelter.cpp:80
↓ 2 callers
Function
getListOfDepths
Ch 4. Trees and Graphs/C++14/4.3-ListOfDepths.cpp:14
↓ 2 callers
Function
height
The function Compute the "height" of a tree. Height is the number of nodes along the longest path from the root node down to the farthest leaf
Chapter-4-tree-and-graph/4.4_check_balanced.cpp:61
↓ 2 callers
Function
inOrderString
Ch 4. Trees and Graphs/4.10_Check_Subtree.cpp:8
↓ 2 callers
Function
inOrderSuccessor
Chapter-4-tree-and-graph/4.6_successor.cpp:39
↓ 2 callers
Function
insert
* [insert - insert a node at the head of list] * @param head [head of the list] * @param data [new node's data] */
chapter-2-Linked-Lists/2-1-remove-dups.cpp:25
↓ 2 callers
Method
isAce
Ch 7.OOD/1.Deck Of Cards/BlackJackCard.cpp:48
↓ 2 callers
Function
isDescendant
root1 is decsendent of root
Chapter-4-tree-and-graph/4.8_first_common_ancestor.cpp:25
↓ 2 callers
Method
isFaceCard
Ch 7.OOD/1.Deck Of Cards/BlackJackCard.cpp:53
↓ 2 callers
Method
isRoute
isRoute function to determine if there is a route from x to y
Ch 4. Trees and Graphs/4-1-Route-Between-Nodes.cpp:31
↓ 2 callers
Function
isSubTree
Chapter-4-tree-and-graph/4.10_check_subtree.cpp:36
↓ 2 callers
Function
iter_swap
chapter-8-recursion-and-Dynamic-Programming/8.8_Permutations_with_Dups.cpp:8
↓ 2 callers
Function
length
* [length - helper routine to return length of list] * @param head [list's head] * @return length of the list */
chapter-2-Linked-Lists/2-5-add-lists.cpp:164
↓ 2 callers
Function
listLen
chapter-2-Linked-Lists/2-7-intersection.cpp:31
↓ 2 callers
Method
maxValue
Ch 7.OOD/1.Deck Of Cards/BlackJackCard.cpp:36
↓ 2 callers
Method
minValue
Ch 7.OOD/1.Deck Of Cards/BlackJackCard.cpp:24
↓ 2 callers
Function
nullifyRow
Ch 1.Arrays And Strings/8.Zero_matrix/8.zero_matrix.cpp:14
↓ 2 callers
Function
padList
* [padList - Helper routine for padding the shorter list] * @param list [Current list] * @param padding [number of padding required] */
chapter-2-Linked-Lists/2-5-add-lists.cpp:153
↓ 2 callers
Method
pop
Chapter-3-Stacks-and-Queues/C++14/3.3-StackOfPlates.cpp:28
↓ 2 callers
Method
pop
Chapter-3-Stacks-and-Queues/C++14/3.3-StackOfPlatesFU.cpp:26
↓ 2 callers
Function
printList
chapter-2-Linked-Lists/2-4-partition.cpp:39
↓ 2 callers
Function
printList
* [printList Helper routine to print list] * @param head [head of the list] */
chapter-2-Linked-Lists/2-7-intersection.cpp:22
↓ 2 callers
Function
printList
chapter-2-Linked-Lists/2-8-loop-detection.cpp:64
↓ 2 callers
Function
printList
* [printList - Helper routine to print the list] * @param head [head of the list] */
chapter-2-Linked-Lists/2-3-delete-middle-node.cpp:27
↓ 2 callers
Function
printMatrix
Ch 1.Arrays And Strings/8.Zero_matrix/8.zero_matrix.cpp:66
↓ 2 callers
Function
printMatrix
Ch 1.Arrays And Strings/7.Rotate_matrix/7.rotate_matrix.cpp:51
↓ 2 callers
Method
push
Chapter-3-Stacks-and-Queues/C++14/3.3-StackOfPlates.cpp:16
↓ 2 callers
Method
push
Chapter-3-Stacks-and-Queues/C++14/3.3-StackOfPlatesFU.cpp:13
↓ 2 callers
Function
random_range
generate a random int between min and max * [random_range helper routine to generate a random number between min and max (including)] * @param min [
chapter-2-Linked-Lists/2-1-remove-dups.cpp:52
↓ 2 callers
Method
remove
Chapter-3-Stacks-and-Queues/C++14/3.4-QueueViaStacks.cpp:23
↓ 2 callers
Method
remove
Chapter-3-Stacks-and-Queues/C++14/queue.hpp:40
↓ 2 callers
Function
reverse
chapter-2-Linked-Lists/2-6-palindrome.cpp:50
↓ 2 callers
Method
setOrder
Chapter-3-Stacks-and-Queues/C++14/3.6-AnimalShelter.cpp:26
↓ 2 callers
Method
setRightChild
Ch 4. Trees and Graphs/C++14/treenode.hpp:93
↓ 2 callers
Method
setRoot
Ch 4. Trees and Graphs/C++14/tree.hpp:20
↓ 2 callers
Function
test
Ch 4. Trees and Graphs/C++14/4.7d-BuildOrder.cpp:59
↓ 2 callers
Function
test
Ch 4. Trees and Graphs/C++14/4.7-BuildOrder.cpp:47
↓ 1 callers
Function
MatchTree
Implemented the alternative approach described in the book.*/
Chapter-4-tree-and-graph/4.10_check_subtree.cpp:25
↓ 1 callers
Function
URLify
in this solution we are using C++ stl/std style */
Ch 1.Arrays And Strings/3.URLify/URLify2.cpp:6
↓ 1 callers
Function
_printParenthesis
chapter-8-recursion-and-Dynamic-Programming/8.9_Parens.cpp:16
↓ 1 callers
Function
addCardToScoreList
Ch 7.OOD/1.Deck Of Cards/BlackJackHand.cpp:4
↓ 1 callers
Method
addChild
Ch 4. Trees and Graphs/C++14/graph.hpp:44
next →
1–100 of 434, ranked by callers