↓ 1 callersFunctionmainr""" Mirror binary trees with the given root and returns the root >>> tree = make_tree_nine() >>> tuple(tree) (7, 4, 8, 2, 5, 9, 1, 3
data_structures/binary_tree/mirror_binary_tree.py:114
↓ 1 callersFunctionmain Size of matrix created from array [30, 35, 15, 5, 10, 20, 25] will be: 30*35 35*15 15*5 5*10 10*20 20*25
dynamic_programming/matrix_chain_order.py:51
↓ 1 callersMethodmake_decrypt_key >>> hill_cipher = HillCipher(np.array([[2, 5], [1, 6]])) >>> hill_cipher.make_decrypt_key() array([[ 6, 25], [
ciphers/hill_cipher.py:145
↓ 1 callersFunctionmatrix_chain_order >>> matrix_chain_order([10, 30, 5]) ([[0, 0, 0], [0, 0, 1500], [0, 0, 0]], [[0, 0, 0], [0, 0, 1], [0, 0, 0]])
dynamic_programming/matrix_chain_order.py:13
↓ 1 callersFunctionmax_profit >>> max_profit([7, 1, 5, 3, 6, 4]) 5 >>> max_profit([7, 6, 4, 3, 1]) 0
greedy_methods/best_time_to_buy_and_sell_stock.py:18
↓ 1 callersFunctionmax_sum_in_array Returns the maximum sum of k consecutive elements >>> arr = [1, 4, 2, 10, 2, 3, 1, 0, 20] >>> k = 4 >>> max_sum_in_array(arr, k)
maths/max_sum_sliding_window.py:13
↓ 1 callersFunctionmedian_of_3 >>> array = [4, 2, 6, 8, 1, 7, 8, 22, 14, 56, 27, 79, 23, 45, 14, 12] >>> median_of_3(array, 0, ((len(array) - 0) // 2) + 1, len(array) - 1)
sorts/intro_sort.py:82
↓ 1 callersFunctionmerge >>> merge([[1, 6], [9, 10]], [[2, 3], [4, 5], [7, 8]]) [[1, 6], [2, 3], [4, 5], [7, 8], [9, 10]]
sorts/merge_insertion_sort.py:38