↓ 6 callersFunctionget_mid Find the midpoint of two points >>> get_mid((0, 0), (2, 2)) (1.0, 1.0) >>> get_mid((-3, -3), (3, 3)) (0.0, 0.0) >>> get_mid(
fractals/sierpinski_triangle.py:30
↓ 6 callersFunctionlowest_common_ancestor Return the lowest common ancestor between u and v >>> level = [-1, 0, 1, 1, 2, 2, 2] >>> parent = [[0, 0, 1, 1, 2, 2, 3],[0, 0, 0, 0, 1,
data_structures/binary_tree/lowest_common_ancestor.py:57
↓ 6 callersFunctionsigmoid Applies sigmoid activation function. return normalized values >>> sigmoid(np.array(([1, 0, 2], [1, 0, 0]), dtype=np.float64)) array
neural_network/two_hidden_layers_neural_network.py:226
↓ 5 callersFunctionbucket_sort >>> data = [-1, 2, -5, 0] >>> bucket_sort(data) == sorted(data) True >>> data = [9, 8, 7, 6, -12] >>> bucket_sort(data) == sorted
sorts/bucket_sort.py:34
↓ 5 callersFunctioncross Cross product of elements in A and elements in B. >>> cross('AB', '12') ['A1', 'A2', 'B1', 'B2'] >>> cross('ABC', '123') ['A1',
data_structures/arrays/sudoku_solver.py:11
↓ 5 callersFunctiondecimal_to_octalConvert a Decimal Number to an Octal Number. >>> all(decimal_to_octal(i) == oct(i) for i ... in (0, 2, 8, 64, 65, 216, 255, 256, 512))
conversions/decimal_to_octal.py:9
↓ 5 callersMethodquery Query the maximum value in the range [a,b]. >>> s = SegmentTree([1, 2, 3, 4, 5]) >>> s.query(1, 3) 3 >>> s.q
data_structures/binary_tree/segment_tree.py:74
↓ 5 callersMethodquery query(1, 1, size, a, b) for query max of [a,b] >>> A = [1, 2, -4, 7, 3, -5, 6, 11, -20, 9, 14, 15, 5, 2, -8] >>> segment_tree
data_structures/binary_tree/lazy_segment_tree.py:89