Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alexhagiopol/cracking-the-coding-interview
/ functions
Functions
453 in github.com/alexhagiopol/cracking-the-coding-interview
⨍
Functions
453
◇
Types & classes
48
↓ 3 callers
Function
reverse
cpp_solutions/chapter_12_cpp/problem_12_02_reverse.cpp:24
↓ 3 callers
Method
seeMin
cpp_solutions/chapter_03_stacks_and_queues/problem_03_02_StackMin.h:50
↓ 3 callers
Method
see_min
(self)
python_solutions/chapter_03_stacks_queues/problem_03_02_stack_min.py:41
↓ 3 callers
Method
setValue
cpp_solutions/chapter_02_linked_lists/Node.h:16
↓ 3 callers
Function
singleByteLine
cpp_solutions/chapter_05_bit_manipulation/problem_05_08_drawLine.cpp:74
↓ 3 callers
Function
single_byte_line
(x1, x2)
python_solutions/chapter_05_bit_manipulation/problem_05_08_draw_line.py:52
↓ 3 callers
Function
swapNumbers
cpp_solutions/chapter_16_moderate/problem_16_01_swapNumbers.h:9
↓ 3 callers
Function
tripleStep
cpp_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_01_tripleStep.cpp:13
↓ 2 callers
Method
Queue
cpp_solutions/chapter_03_stacks_and_queues/Queue.h:11
↓ 2 callers
Method
add_to_end
(self, node)
python_solutions/chapter_03_stacks_queues/problem_03_06_animal_shelter.py:29
↓ 2 callers
Function
bstToVector
cpp_solutions/chapter_02_linked_lists/Node.h:184
↓ 2 callers
Function
checkBalanced
cpp_solutions/chapter_04_trees_and_graphs/problem_04_04_checkBalanced.h:29
↓ 2 callers
Function
computeIndex
cpp_solutions/chapter_10_sorting_and_searching/problem_10_04_searchNoSize.cpp:25
↓ 2 callers
Function
conversion
cpp_solutions/chapter_05_bit_manipulation/problem_05_06_conversion.cpp:4
↓ 2 callers
Method
dequeue_cat
(self)
python_solutions/chapter_03_stacks_queues/problem_03_06_animal_shelter.py:75
↓ 2 callers
Method
enqueue
cpp_solutions/chapter_03_stacks_and_queues/problem_03_04_QueueViaStacks.h:31
↓ 2 callers
Method
getChildren
cpp_solutions/chapter_02_linked_lists/Node.h:103
↓ 2 callers
Method
getID
cpp_solutions/chapter_03_stacks_and_queues/problem_03_06_animalShelter.h:41
↓ 2 callers
Method
getLeftChildrenCount
cpp_solutions/chapter_10_sorting_and_searching/problem_10_10_rankFromStream.h:81
↓ 2 callers
Method
getNumAncestors
cpp_solutions/chapter_02_linked_lists/Node.h:74
↓ 2 callers
Method
getSpecies
cpp_solutions/chapter_03_stacks_and_queues/problem_03_06_animalShelter.h:44
↓ 2 callers
Method
inBounds
cpp_solutions/chapter_16_moderate/problem_16_03_intersection.h:36
↓ 2 callers
Method
incrementLeft
cpp_solutions/chapter_10_sorting_and_searching/problem_10_10_rankFromStream.h:82
↓ 2 callers
Method
isEmpty
cpp_solutions/chapter_03_stacks_and_queues/problem_03_04_QueueViaStacks.h:30
↓ 2 callers
Method
is_empty
(self)
python_solutions/chapter_03_stacks_queues/Queue.py:24
↓ 2 callers
Method
left_children
(self)
python_solutions/chapter_04_trees_and_graphs/problem_04_11_random_BST.py:44
↓ 2 callers
Function
makeIntegralImage
cpp_solutions/misc_exercises/misc_01_integralImage.cpp:4
↓ 2 callers
Function
minimalTree
cpp_solutions/chapter_04_trees_and_graphs/problem_04_02_minimalTree.h:39
↓ 2 callers
Function
minimalTreeHelper
cpp_solutions/chapter_04_trees_and_graphs/problem_04_02_minimalTree.h:25
↓ 2 callers
Function
node_to_ll
(list_ll, node, depth)
python_solutions/chapter_04_trees_and_graphs/problem_04_03_make_ll.py:25
↓ 2 callers
Function
partition
cpp_solutions/chapter_10_sorting_and_searching/quickSort.h:6
↓ 2 callers
Method
pop
override pop() function from base class
cpp_solutions/chapter_03_stacks_and_queues/problem_03_02_StackMin.h:43
↓ 2 callers
Method
pop_at
(self, index)
python_solutions/chapter_03_stacks_queues/problem_03_03_stack_of_plates.py:24
↓ 2 callers
Function
setPairValues
Sets pair associated with number
cpp_solutions/chapter_10_sorting_and_searching/problem_10_08_findDuplicates.cpp:15
↓ 2 callers
Function
sortedMerge
cpp_solutions/chapter_10_sorting_and_searching/problem_10_01_sortedMerge.h:21
↓ 2 callers
Function
validateBST
cpp_solutions/chapter_04_trees_and_graphs/problem_04_05_validateBST.h:30
↓ 1 callers
Method
AnimalShelter
cpp_solutions/chapter_03_stacks_and_queues/problem_03_06_animalShelter.cpp:18
↓ 1 callers
Method
QueueViaStacks
cpp_solutions/chapter_03_stacks_and_queues/problem_03_04_QueueViaStacks.h:29
↓ 1 callers
Method
StackMin
cpp_solutions/chapter_03_stacks_and_queues/problem_03_02_StackMin.h:32
↓ 1 callers
Method
add
(self, value)
python_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_06_hanoi_towers.py:8
↓ 1 callers
Function
approxEqual
cpp_solutions/chapter_16_moderate/problem_16_03_intersection.h:6
↓ 1 callers
Function
binarySearchMagicIndex
cpp_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_03_magicIndex.cpp:4
↓ 1 callers
Function
check_height
(root)
python_solutions/chapter_04_trees_and_graphs/problem_04_04_check_balanced.py:21
↓ 1 callers
Function
combine
(char, string_list)
python_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_07_permutations_no_dups.py:54
↓ 1 callers
Function
combine
cpp_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_07_permutationsNoDups.cpp:46
↓ 1 callers
Function
computeCompressedLength
cpp_solutions/chapter_01_arrays_and_strings/problem_01_06_stringCompression.cpp:27
↓ 1 callers
Function
computeEndpoint
cpp_solutions/chapter_10_sorting_and_searching/problem_10_04_searchNoSize.cpp:27
↓ 1 callers
Function
compute_compressed_length
(string)
python_solutions/chapter_01_arrays_and_strings/problem_01_06_string_compression.py:29
↓ 1 callers
Function
copyNode
cpp_solutions/chapter_12_cpp/problem_12_08_copyNode.h:26
↓ 1 callers
Function
count_paths
(node, target_sum, running_sum, hash_table)
python_solutions/chapter_04_trees_and_graphs/problem_04_12_paths_with_sum.py:46
↓ 1 callers
Method
decAncestors
cpp_solutions/chapter_02_linked_lists/Node.h:71
↓ 1 callers
Function
deleteMiddleNode
cpp_solutions/chapter_02_linked_lists/problem_02_03_deleteMiddleNode.h:25
↓ 1 callers
Method
dequeueCat
cpp_solutions/chapter_03_stacks_and_queues/problem_03_06_animalShelter.cpp:35
↓ 1 callers
Method
dequeueDog
cpp_solutions/chapter_03_stacks_and_queues/problem_03_06_animalShelter.cpp:43
↓ 1 callers
Method
dequeue_dog
(self)
python_solutions/chapter_03_stacks_queues/problem_03_06_animal_shelter.py:72
↓ 1 callers
Function
dfsHelper
cpp_solutions/chapter_16_moderate/problem_16_19_pondSizes.cpp:5
↓ 1 callers
Function
findDuplicates
cpp_solutions/chapter_10_sorting_and_searching/problem_10_08_findDuplicates.cpp:20
↓ 1 callers
Function
firstCommonAncestorHelper
cpp_solutions/chapter_04_trees_and_graphs/problem_04_08_firstCommonAncestor.h:29
↓ 1 callers
Function
first_common_ancestor_helper
(currentNode, node1, node2, fca_reference)
python_solutions/chapter_04_trees_and_graphs/problem_04_08_first_common_ancestor.py:25
↓ 1 callers
Function
getFirstRightAncestor
cpp_solutions/chapter_04_trees_and_graphs/problem_04_06_successor.h:36
↓ 1 callers
Method
getHeadOfDescendants
cpp_solutions/chapter_02_linked_lists/Node.h:77
↓ 1 callers
Function
getLeftmostDescendant
cpp_solutions/chapter_04_trees_and_graphs/problem_04_06_successor.h:27
↓ 1 callers
Function
getPath
cpp_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_02_robotGrid.cpp:21
↓ 1 callers
Method
getRandomNode
cpp_solutions/chapter_04_trees_and_graphs/problem_04_11_randomBST.h:69
↓ 1 callers
Method
get_children
(self, node)
python_solutions/chapter_04_trees_and_graphs/problem_04_01_path_exists.py:29
↓ 1 callers
Function
get_first_right_ancestor
(node)
python_solutions/chapter_04_trees_and_graphs/problem_04_06_successor.py:32
↓ 1 callers
Function
get_leftmost_descendant
(node)
python_solutions/chapter_04_trees_and_graphs/problem_04_06_successor.py:24
↓ 1 callers
Function
get_path
(maze, start, end, path, visited_points)
python_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_02_robot_grid.py:9
↓ 1 callers
Method
get_random
(self, rand_int=None)
python_solutions/chapter_04_trees_and_graphs/problem_04_11_random_BST.py:74
↓ 1 callers
Function
helper
(string, left, right, combinations)
python_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_09_parens.py:10
↓ 1 callers
Function
helper
(string, hash_table, permutations)
python_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_08_permutations_with_dups.py:13
↓ 1 callers
Function
helper_recursive_multiply
(a, b)
python_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_05_recursive_multiply.py:7
↓ 1 callers
Method
incAncestors
cpp_solutions/chapter_02_linked_lists/Node.h:68
↓ 1 callers
Method
insert
(self, value)
python_solutions/chapter_04_trees_and_graphs/problem_04_11_random_BST.py:56
↓ 1 callers
Function
insertion
cpp_solutions/chapter_05_bit_manipulation/problem_05_01_insertion.cpp:4
↓ 1 callers
Function
int_to_char
(mod)
python_solutions/chapter_05_bit_manipulation/problem_05_00_convert_binary.py:10
↓ 1 callers
Function
is_combination
(string, dict)
python_solutions/chapter_17_hard/problem_17_15_longest_combination.py:2
↓ 1 callers
Function
is_substring
(s1, s2)
python_solutions/chapter_01_arrays_and_strings/problem_01_09_string_rotation.py:22
↓ 1 callers
Function
kernelConvolution
cpp_solutions/misc_exercises/misc_02_kernelConvolution.cpp:4
↓ 1 callers
Function
makeDatabase
cpp_solutions/chapter_16_moderate/problem_16_02_wordFrequencies.cpp:13
↓ 1 callers
Function
makeLL
cpp_solutions/chapter_04_trees_and_graphs/problem_04_03_makeLL.h:42
↓ 1 callers
Function
mergeHelper
cpp_solutions/chapter_10_sorting_and_searching/mergeSort.h:6
↓ 1 callers
Function
merge_helper
(array, helper_array, start, middle, end)
python_solutions/chapter_10_sorting_and_searching/merge_sort.py:4
↓ 1 callers
Function
missingInt
cpp_solutions/chapter_10_sorting_and_searching/problem_10_07_missingInt.cpp:8
↓ 1 callers
Method
move_disks
(self, n, destination, buffer)
python_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_06_hanoi_towers.py:24
↓ 1 callers
Method
move_top_to
(self, destination)
python_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_06_hanoi_towers.py:18
↓ 1 callers
Function
partition
(array, start, end)
python_solutions/chapter_10_sorting_and_searching/quick_sort.py:1
↓ 1 callers
Function
pathsWithSum
cpp_solutions/chapter_04_trees_and_graphs/problem_04_12_pathsWithSum.h:68
↓ 1 callers
Function
pathsWithSumHelper
cpp_solutions/chapter_04_trees_and_graphs/problem_04_12_pathsWithSum.h:45
↓ 1 callers
Function
permutationsWithDupsHelper
cpp_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_08_permutationsWithDups.cpp:30
↓ 1 callers
Method
push
(self, value)
python_solutions/chapter_03_stacks_queues/problem_03_03_stack_of_plates.py:10
↓ 1 callers
Function
quickSortHelper
cpp_solutions/chapter_10_sorting_and_searching/quickSort.h:21
↓ 1 callers
Function
quick_sort_helper
(array, start, end)
python_solutions/chapter_10_sorting_and_searching/quick_sort.py:13
↓ 1 callers
Function
recursiveMultiplyHelper
cpp_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_05_recursiveMultiply.cpp:5
↓ 1 callers
Function
robotGrid
cpp_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_02_robotGrid.cpp:39
↓ 1 callers
Function
rotatedSearchHelper
cpp_solutions/chapter_10_sorting_and_searching/problem_10_03_rotatedSearch.h:34
↓ 1 callers
Function
searchInsertion
cpp_solutions/chapter_01_arrays_and_strings/problem_01_05_oneAway.cpp:34
↓ 1 callers
Function
searchNoSizeHelper
cpp_solutions/chapter_10_sorting_and_searching/problem_10_04_searchNoSize.cpp:6
↓ 1 callers
Function
searchReplacement
cpp_solutions/chapter_01_arrays_and_strings/problem_01_05_oneAway.cpp:57
↓ 1 callers
Function
search_insertion
(s1, s2)
python_solutions/chapter_01_arrays_and_strings/problem_01_05_one_away.py:31
← previous
next →
101–200 of 453, ranked by callers