MCPcopy Create free account

hub / github.com/alexhagiopol/cracking-the-coding-interview / functions

Functions453 in github.com/alexhagiopol/cracking-the-coding-interview

↓ 1 callersFunctionsearch_replacement
(s1, s2)
python_solutions/chapter_01_arrays_and_strings/problem_01_05_one_away.py:50
↓ 1 callersMethodsetID
cpp_solutions/chapter_03_stacks_and_queues/problem_03_06_animalShelter.h:42
↓ 1 callersMethodsetValue
cpp_solutions/chapter_12_cpp/problem_12_09_smartPointer.h:71
↓ 1 callersFunctionsortHelper
cpp_solutions/chapter_10_sorting_and_searching/mergeSort.h:41
↓ 1 callersFunctionsortStack
cpp_solutions/chapter_03_stacks_and_queues/problem_03_05_sortStack.h:26
↓ 1 callersFunctionsort_helper
(array, helper_array, start, end)
python_solutions/chapter_10_sorting_and_searching/merge_sort.py:34
↓ 1 callersFunctionsparseSearchHelper
cpp_solutions/chapter_10_sorting_and_searching/problem_10_05_sparseSearch.cpp:4
↓ 1 callersMethodstackSize
cpp_solutions/chapter_03_stacks_and_queues/Stack.h:45
↓ 1 callersFunctionsubmatrixSearchHelper
cpp_solutions/chapter_10_sorting_and_searching/problem_10_09_matrixSearch.h:125
↓ 1 callersFunctionsubtreeEquality
cpp_solutions/chapter_04_trees_and_graphs/problem_04_10_checkSubtree.h:26
↓ 1 callersFunctionsubtree_equality
(t1, t2)
python_solutions/chapter_04_trees_and_graphs/problem_04_10_check_subtree.py:22
↓ 1 callersFunctionsumLists
cpp_solutions/chapter_02_linked_lists/problem_02_05_sumLists.h:28
↓ 1 callersFunctiontrimCopy
cpp_solutions/chapter_16_moderate/problem_16_02_wordFrequencies.cpp:4
↓ 1 callersFunctionvalidate_BST_helper
(node, min, max)
python_solutions/chapter_04_trees_and_graphs/problem_04_05_validate_BST.py:26
↓ 1 callersFunctionvectorFromVectorOfLLs
cpp_solutions/chapter_04_trees_and_graphs/problem_04_03_makeLL.h:29
MethodAnimal
cpp_solutions/chapter_03_stacks_and_queues/problem_03_06_animalShelter.cpp:4
MethodCat
cpp_solutions/chapter_03_stacks_and_queues/problem_03_06_animalShelter.cpp:14
MethodDog
cpp_solutions/chapter_03_stacks_and_queues/problem_03_06_animalShelter.cpp:10
MethodGraphNode
cpp_solutions/chapter_02_linked_lists/Node.h:40
MethodLineSegment2
cpp_solutions/chapter_16_moderate/problem_16_03_intersection.h:25
MethodListy
cpp_solutions/chapter_10_sorting_and_searching/problem_10_04_searchNoSize.h:44
MethodPerson
cpp_solutions/chapter_16_moderate/problem_16_10_livingPeople.h:29
MethodPoint2
cpp_solutions/chapter_10_sorting_and_searching/problem_10_09_matrixSearch.h:72
MethodRandBinaryNode
cpp_solutions/chapter_04_trees_and_graphs/problem_04_11_randomBST.h:44
MethodRankBinaryNode
cpp_solutions/chapter_10_sorting_and_searching/problem_10_10_rankFromStream.h:71
MethodRankTracker
cpp_solutions/chapter_10_sorting_and_searching/problem_10_10_rankFromStream.h:89
MethodSmartPointer
regular constructor
cpp_solutions/chapter_12_cpp/problem_12_09_smartPointer.h:48
MethodTTTDatabase
cpp_solutions/chapter_16_moderate/problem_16_04_ticTacWin.cpp:5
MethodTetraGraphNode
cpp_solutions/chapter_02_linked_lists/Node.h:88
Method__eq__
(self, other)
python_solutions/chapter_16_moderate/problem_16_03_intersection.py:6
Method__eq__
(self, other)
python_solutions/chapter_04_trees_and_graphs/tree_basics.py:20
Method__init__
(self, x, y)
python_solutions/chapter_16_moderate/problem_16_03_intersection.py:2
Method__init__
(self, start, end)
python_solutions/chapter_16_moderate/problem_16_03_intersection.py:11
Method__init__
(self, value, next_node)
python_solutions/chapter_02_linked_lists/SinglyLinkedNode.py:2
Method__init__
(self, disks=None)
python_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_06_hanoi_towers.py:2
Method__init__
(self, left, right, val)
python_solutions/chapter_04_trees_and_graphs/problem_04_02_make_bst.py:22
Method__init__
(self, name)
python_solutions/chapter_04_trees_and_graphs/problem_04_07_build_order.py:37
Method__init__
(self, val, left=None, right=None)
python_solutions/chapter_04_trees_and_graphs/tree_basics.py:7
Method__init__
(self, val, left=None, right=None, parent=None)
python_solutions/chapter_04_trees_and_graphs/tree_basics.py:14
Method__init__
(self, val, next_elem=None)
python_solutions/chapter_04_trees_and_graphs/tree_basics.py:27
Method__init__
(self, val, children=())
python_solutions/chapter_04_trees_and_graphs/tree_basics.py:54
Method__init__
(self, value, frontier=False, explored=False)
python_solutions/chapter_04_trees_and_graphs/problem_04_01_path_exists.py:19
Method__init__
(self)
python_solutions/chapter_04_trees_and_graphs/problem_04_01_path_exists.py:26
Method__init__
(self, value=None, left=None, right=None, children=0)
python_solutions/chapter_04_trees_and_graphs/problem_04_11_random_BST.py:38
Method__init__
(self)
python_solutions/chapter_03_stacks_queues/Stack.py:5
Method__init__
(self, max_height)
python_solutions/chapter_03_stacks_queues/problem_03_03_stack_of_plates.py:5
Method__init__
(self)
python_solutions/chapter_03_stacks_queues/problem_03_04_queue_via_stacks.py:23
Method__init__
(self, head=None)
python_solutions/chapter_03_stacks_queues/problem_03_06_animal_shelter.py:25
Method__init__
(self, name, species, order, next_node=None)
python_solutions/chapter_03_stacks_queues/problem_03_06_animal_shelter.py:51
Method__init__
(self)
python_solutions/chapter_03_stacks_queues/problem_03_06_animal_shelter.py:59
Method__init__
(self)
python_solutions/chapter_03_stacks_queues/Queue.py:4
Method__init__
(self)
python_solutions/chapter_03_stacks_queues/problem_03_01_three_in_one.py:2
Method__init__
(self)
python_solutions/chapter_03_stacks_queues/problem_03_02_stack_min.py:26
Method__str__
(self)
python_solutions/chapter_03_stacks_queues/Stack.py:30
Functionare_permutations
(s1, s2)
python_solutions/chapter_01_arrays_and_strings/problem_01_02_are_permuations.py:30
Functionbfs
(root, visit_sequence)
python_solutions/chapter_04_trees_and_graphs/tree_basics.py:68
Functionbinary_to_string
(fraction)
python_solutions/chapter_05_bit_manipulation/problem_05_02_binary_to_string.py:1
Methodboard2Hash
cpp_solutions/chapter_16_moderate/problem_16_04_ticTacWin.cpp:15
MethodbuildDB
cpp_solutions/chapter_16_moderate/problem_16_04_ticTacWin.cpp:88
Functionbuild_order
(project_list, deps_list)
python_solutions/chapter_04_trees_and_graphs/problem_04_07_build_order.py:44
Functioncheck_balanced
(root)
python_solutions/chapter_04_trees_and_graphs/problem_04_04_check_balanced.py:29
Functioncheck_subtree
(t1, t2)
python_solutions/chapter_04_trees_and_graphs/problem_04_10_check_subtree.py:32
Functioncoin_representations
(n, denom_index=0, denoms=(1, 5, 10, 25))
python_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_11_coins.py:2
Functionconversion
(A, B)
python_solutions/chapter_05_bit_manipulation/problem_05_06_conversion.py:1
Functionconvert_to_base
(num, old, new)
python_solutions/chapter_05_bit_manipulation/problem_05_00_convert_binary.py:16
Functionconvert_to_base2
(num)
python_solutions/chapter_05_bit_manipulation/problem_05_00_convert_binary.py:1
MethoddecrementChildren
cpp_solutions/chapter_04_trees_and_graphs/problem_04_11_randomBST.h:102
Methoddelete
(self)
python_solutions/chapter_04_trees_and_graphs/problem_04_11_random_BST.py:87
Functiondelete_middle
(node)
python_solutions/chapter_02_linked_lists/problem_02_03_delete_middle.py:20
Methoddequeue
(self)
python_solutions/chapter_03_stacks_queues/problem_03_04_queue_via_stacks.py:30
Functiondfs
(root, visit_sequence)
python_solutions/chapter_04_trees_and_graphs/tree_basics.py:60
Functiondraw_line
(screen, width, x1, x2, y)
python_solutions/chapter_05_bit_manipulation/problem_05_08_draw_line.py:64
Methodenqueue
(self, value)
python_solutions/chapter_03_stacks_queues/problem_03_04_queue_via_stacks.py:27
Methodenqueue
(self, species, name)
python_solutions/chapter_03_stacks_queues/problem_03_06_animal_shelter.py:64
Functionfind_longest_combination
(list)
python_solutions/chapter_17_hard/problem_17_15_longest_combination.py:13
Functionfind_loop
(head)
python_solutions/chapter_02_linked_lists/problem_02_08_find_loop.py:25
Functionfirst_common_ancestor
(head, node1, node2)
python_solutions/chapter_04_trees_and_graphs/problem_04_08_first_common_ancestor.py:40
Functionflip_bit_to_win
(number)
python_solutions/chapter_05_bit_manipulation/problem_05_03_flip_bit_to_win.py:1
MethodgetLeftChildren
cpp_solutions/chapter_04_trees_and_graphs/problem_04_11_randomBST.h:85
MethodgetRightChildren
cpp_solutions/chapter_04_trees_and_graphs/problem_04_11_randomBST.h:93
Functionget_next
(positive_integer)
python_solutions/chapter_05_bit_manipulation/problem_05_04_next_number.py:75
Functionget_prev
(positive_integer)
python_solutions/chapter_05_bit_manipulation/problem_05_04_next_number.py:40
Functionhistogram_volume
(histogram_array)
python_solutions/chapter_17_hard/problem_17_21_histogram_volume.py:1
Functionin_order_traversal
(node, visit_sequence)
python_solutions/chapter_04_trees_and_graphs/tree_basics.py:32
MethodincrementChildren
cpp_solutions/chapter_04_trees_and_graphs/problem_04_11_randomBST.h:101
Functioninsertion
example input: N = 10000000000, M = 10011, i = 2, j = 6 example output: 10001001100
python_solutions/chapter_05_bit_manipulation/problem_05_01_insertion.py:5
Functionintersection
(segment1, segment2)
python_solutions/chapter_16_moderate/problem_16_03_intersection.py:22
Functionintersection
(head1, head2)
python_solutions/chapter_02_linked_lists/problem_02_07_intersection.py:32
Functionintersection
cpp_solutions/chapter_02_linked_lists/problem_02_07_intersection.h:52
MethodisEmpty
cpp_solutions/chapter_03_stacks_and_queues/Queue.h:18
MethodisPermutation
cpp_solutions/chapter_01_arrays_and_strings/problem_01_02_arePermutations.cpp:33
MethodisUnique
cpp_solutions/chapter_01_arrays_and_strings/problem_01_01_isUnique.cpp:33
Functionis_unique
(input_string)
python_solutions/chapter_01_arrays_and_strings/problem_01_01_is_unique.py:29
MethodlinearIndex
cpp_solutions/chapter_16_moderate/problem_16_04_ticTacWin.cpp:38
Functionlist_length
(node)
python_solutions/chapter_02_linked_lists/SinglyLinkedNode.py:15
Functionmagic_index
(A, start=None, end=None)
python_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_03_magic_index.py:1
Functionmain
cpp_solutions/chapter_10_sorting_and_searching/chapter_10_dataset_generation/generate_random_number_file.cpp:6
Functionmajority_element
(array)
python_solutions/chapter_17_hard/problem_17_10_majority_element.py:1
Functionmake_bst
(sorted_list)
python_solutions/chapter_04_trees_and_graphs/problem_04_02_make_bst.py:28
Functionmake_ll
(root)
python_solutions/chapter_04_trees_and_graphs/problem_04_03_make_ll.py:40
← previousnext →201–300 of 453, ranked by callers