MCPcopy Create free account

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

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

Functionmerge_sort
(array)
python_solutions/chapter_10_sorting_and_searching/merge_sort.py:45
MethodoneAway
cpp_solutions/chapter_01_arrays_and_strings/problem_01_05_oneAway.cpp:73
Functionone_away
(s1, s2)
python_solutions/chapter_01_arrays_and_strings/problem_01_05_one_away.py:63
Methodoperator!=
cpp_solutions/chapter_10_sorting_and_searching/problem_10_09_matrixSearch.h:73
Methodoperator!=
cpp_solutions/chapter_03_stacks_and_queues/Stack.h:70
Methodoperator*
cpp_solutions/chapter_10_sorting_and_searching/problem_10_09_matrixSearch.h:100
Methodoperator+
cpp_solutions/chapter_10_sorting_and_searching/problem_10_09_matrixSearch.h:94
Methodoperator-
cpp_solutions/chapter_10_sorting_and_searching/problem_10_09_matrixSearch.h:91
Methodoperator/
cpp_solutions/chapter_10_sorting_and_searching/problem_10_09_matrixSearch.h:97
Methodoperator<
cpp_solutions/chapter_10_sorting_and_searching/problem_10_09_matrixSearch.h:85
Methodoperator<=
cpp_solutions/chapter_10_sorting_and_searching/problem_10_09_matrixSearch.h:88
Methodoperator==
cpp_solutions/chapter_16_moderate/problem_16_03_intersection.h:15
Methodoperator==
destructor
cpp_solutions/chapter_02_linked_lists/Node.h:14
Methodoperator==
cpp_solutions/chapter_10_sorting_and_searching/problem_10_09_matrixSearch.h:76
Methodoperator==
compare values in stack top-to-bottom to values in vector front-to-back for easy unit testing
cpp_solutions/chapter_03_stacks_and_queues/Stack.h:56
Methodoperator>
cpp_solutions/chapter_10_sorting_and_searching/problem_10_09_matrixSearch.h:79
Methodoperator>=
cpp_solutions/chapter_10_sorting_and_searching/problem_10_09_matrixSearch.h:82
Functionpaint_fill
(image, target_color, location, init_color=None)
python_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_10_paint_fill.py:1
Functionpairwise_swap
(x)
python_solutions/chapter_05_bit_manipulation/problem_05_07_pairwise_swap.py:1
Functionpalindrome
(head)
python_solutions/chapter_02_linked_lists/problem_02_06_palindrome.py:24
MethodpalindromePermutation
cpp_solutions/chapter_01_arrays_and_strings/problem_01_04_palindromePermutation.cpp:32
Functionpalindrome_permutation
(string)
python_solutions/chapter_01_arrays_and_strings/problem_01_04_palindrome_permutation.py:29
Functionparens
(n)
python_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_09_parens.py:1
Functionpartition
(node, k)
python_solutions/chapter_02_linked_lists/problem_02_04_partition.py:23
Functionpartition
cpp_solutions/chapter_02_linked_lists/problem_02_04_partition.h:28
Functionpath_exists_BFS
(graph, start, end)
python_solutions/chapter_04_trees_and_graphs/problem_04_01_path_exists.py:67
Functionpaths_with_sum
(root, target_sum)
python_solutions/chapter_04_trees_and_graphs/problem_04_12_paths_with_sum.py:41
Methodpeek
cpp_solutions/chapter_03_stacks_and_queues/Queue.h:40
Functionpermutations_no_dups
(string)
python_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_07_permutations_no_dups.py:43
Functionpermutations_with_dups
(string)
python_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_08_permutations_with_dups.py:1
MethodpermuteAndCheckBoard
cpp_solutions/chapter_16_moderate/problem_16_04_ticTacWin.cpp:78
Methodpop
(self)
python_solutions/chapter_03_stacks_queues/problem_03_02_stack_min.py:35
Methodpop
cpp_solutions/chapter_03_stacks_and_queues/Queue.h:31
Functionpost_order_traversal
(node, visit_sequence)
python_solutions/chapter_04_trees_and_graphs/tree_basics.py:46
Functionpower_set
(set)
python_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_04_power_set.py:1
Functionpre_order_traversal
(node, visit_sequence)
python_solutions/chapter_04_trees_and_graphs/tree_basics.py:39
Methodprint
cpp_solutions/chapter_10_sorting_and_searching/problem_10_09_matrixSearch.h:119
FunctionprintPath
cpp_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_02_robotGrid.cpp:13
Functionprintbin
(int_num, name)
python_solutions/chapter_05_bit_manipulation/problem_05_01_insertion.py:1
Methodpush
(self, value)
python_solutions/chapter_03_stacks_queues/problem_03_02_stack_min.py:30
Methodpush
cpp_solutions/chapter_03_stacks_and_queues/Queue.h:20
Functionquick_sort
(array)
python_solutions/chapter_10_sorting_and_searching/quick_sort.py:20
Functionrecursive_multiply
(a, b)
python_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_05_recursive_multiply.py:1
Methodremove
cpp_solutions/chapter_12_cpp/problem_12_09_smartPointer.h:39
MethodremoveLeft
cpp_solutions/chapter_02_linked_lists/Node.h:143
MethodremoveParent
cpp_solutions/chapter_02_linked_lists/Node.h:149
MethodremoveRight
cpp_solutions/chapter_02_linked_lists/Node.h:146
Functionremove_dups
(head)
python_solutions/chapter_02_linked_lists/problem_02_01_remove_dups.py:1
Functionremove_dups_alternative
(head)
python_solutions/chapter_02_linked_lists/problem_02_01_remove_dups.py:12
Functionreset
Implements this directed graph with an adjacency list: 1 -> 2 -> 3 | v
python_solutions/chapter_04_trees_and_graphs/problem_04_01_path_exists.py:36
Functionreturn_kth_to_last
(head, k)
python_solutions/chapter_02_linked_lists/problem_02_02_return_kth_to_last.py:1
Methodright_children
(self)
python_solutions/chapter_04_trees_and_graphs/problem_04_11_random_BST.py:50
Functionrobot_grid
(maze, start, end)
python_solutions/chapter_08_recursion_and_dynamic_programming/problem_08_02_robot_grid.py:1
Methodrotate
cpp_solutions/chapter_01_arrays_and_strings/problem_01_07_rotateMatrix.cpp:25
Functionrotate_matrix
(matrix)
python_solutions/chapter_01_arrays_and_strings/problem_01_07_rotate_matrix.py:25
MethodsetUp
(self)
tests.py:72
MethodsetZero
cpp_solutions/chapter_01_arrays_and_strings/problem_01_08_setZero.cpp:28
Functionset_zero
(matrix)
python_solutions/chapter_01_arrays_and_strings/problem_01_08_set_zero.py:26
Functionsort_stack
(stack)
python_solutions/chapter_03_stacks_queues/problem_03_05_sort_stack.py:27
Functionsorted_merge
(A, lastA, B, lastB)
python_solutions/chapter_10_sorting_and_searching/problem_10_01_sorted_merge.py:20
MethodstringCompression
cpp_solutions/chapter_01_arrays_and_strings/problem_01_06_stringCompression.cpp:46
MethodstringRotation
cpp_solutions/chapter_01_arrays_and_strings/problem_01_09_stringRotation.cpp:24
Functionstring_compression
(string)
python_solutions/chapter_01_arrays_and_strings/problem_01_06_string_compression.py:45
Functionstring_rotation
(s1, s2)
python_solutions/chapter_01_arrays_and_strings/problem_01_09_string_rotation.py:26
Functionstringify_bin_tree
(root)
python_solutions/chapter_04_trees_and_graphs/tree_basics.py:82
Functionstringify_linked_list
(head)
python_solutions/chapter_02_linked_lists/SinglyLinkedNode.py:7
Functionstringify_list_of_linked_lists
(linked_lists)
python_solutions/chapter_04_trees_and_graphs/tree_basics.py:99
Functionstringify_screen
(screen, width)
python_solutions/chapter_05_bit_manipulation/problem_05_08_draw_line.py:41
Functionsuccessor
(node)
python_solutions/chapter_04_trees_and_graphs/problem_04_06_successor.py:42
Functionsum_lists
(node1, node2)
python_solutions/chapter_02_linked_lists/problem_02_05_sum_lists.py:27
Functionswap_numbers
(pair_ab)
python_solutions/chapter_16_moderate/problem_16_01_swap_numbers.py:6
MethodtearDown
(self)
tests.py:1199
Methodtest_graph_exploration
1 <- 8 -> 17 / \ 3 <- 4 10 -> 15 /\ /\ 0 <- 2 6 9 20 -> 23
tests.py:502
Methodtest_merge_sort
(self)
tests.py:1084
Methodtest_problem_10_01
(self)
tests.py:1128
Methodtest_problem_16_01
(self)
tests.py:1144
Methodtest_problem_16_03
(self)
tests.py:1155
Methodtest_problem_17_10
(self)
tests.py:1166
Methodtest_problem_17_15
(self)
tests.py:1181
Methodtest_problem_17_21
(self)
tests.py:1191
Methodtest_problem_1_1
(self)
tests.py:75
Methodtest_problem_1_2
(self)
tests.py:81
Methodtest_problem_1_3
(self)
tests.py:89
Methodtest_problem_1_4
(self)
tests.py:109
Methodtest_problem_1_5
(self)
tests.py:117
Methodtest_problem_1_6
(self)
tests.py:129
Methodtest_problem_1_7
(self)
tests.py:135
Methodtest_problem_1_8
(self)
tests.py:158
Methodtest_problem_1_9
(self)
tests.py:181
Methodtest_problem_2_1
(self)
tests.py:186
Methodtest_problem_2_1_alternative
(self)
tests.py:198
Methodtest_problem_2_2
(self)
tests.py:210
Methodtest_problem_2_3
(self)
tests.py:222
Methodtest_problem_2_4
(self)
tests.py:235
Methodtest_problem_2_5
List1: 3 -> 2 -> 4 -> 9 -> NONE List2: -> NONE 9423 + 951 ----- 10374
tests.py:250
Methodtest_problem_2_6
(self)
tests.py:276
Methodtest_problem_2_7
(self)
tests.py:320
Methodtest_problem_2_8
(self)
tests.py:339
Methodtest_problem_3_1
(self)
tests.py:397
Methodtest_problem_3_2
(self)
tests.py:413
← previousnext →301–400 of 453, ranked by callers