Repository Analysis

keon/algorithms

Minimal examples of data structures and algorithms in Python

94.4 Strong AI signal View on GitHub
94.4
Adjusted Score
94.4
Raw Score
100%
Time Factor
2026-05-25
Last Push
25,458
Stars
Python
Language
36,165
Lines of Code
438
Files
1570
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 478MEDIUM 6LOW 1086

Pattern Findings

1570 matches across 11 categories. Click a row to expand file-level details.

Docstring Block Structure452 hits · 2260 pts
SeverityFileLineSnippet
HIGHalgorithms/tree/path_sum.py23Check if a root-to-leaf path with the given sum exists (recursive). Args: root: The root of the binary tree
HIGHalgorithms/tree/path_sum.py45Check if a root-to-leaf path with the given sum exists (DFS with stack). Args: root: The root of the binary
HIGHalgorithms/tree/path_sum.py73Check if a root-to-leaf path with the given sum exists (BFS with queue). Args: root: The root of the binary
HIGHalgorithms/tree/max_path_sum.py21Find the maximum path sum in a binary tree. Args: root: The root of the binary tree. Returns:
HIGHalgorithms/tree/same_tree.py20Check whether two binary trees are identical. Args: tree_p: The root of the first binary tree. tree
HIGHalgorithms/tree/is_balanced.py20Check whether a binary tree is height-balanced. Args: root: The root of the binary tree. Returns:
HIGHalgorithms/tree/binary_tree_paths.py20Return all root-to-leaf paths in the binary tree. Args: root: The root of the binary tree. Returns:
HIGHalgorithms/tree/pretty_print.py18Format a dictionary tree as a list of readable strings. Each top-level key maps to a list of sub-elements. The outp
HIGHalgorithms/tree/is_symmetric.py20Check whether a binary tree is symmetric using recursion. Args: root: The root of the binary tree. Ret
HIGHalgorithms/tree/is_symmetric.py55Check whether a binary tree is symmetric using iteration. Args: root: The root of the binary tree. Ret
HIGHalgorithms/tree/is_subtree.py22Check whether the small tree is a subtree of the big tree. Args: big: The root of the larger tree.
HIGHalgorithms/tree/max_height.py22Compute the maximum depth of a binary tree using iterative BFS. Args: root: The root of the binary tree.
HIGHalgorithms/tree/min_height.py37Compute the minimum depth of a binary tree using iterative BFS. Args: root: The root of the binary tree.
HIGHalgorithms/tree/bin_tree_to_list.py20Convert a binary tree to a sorted doubly linked list. Args: root: The root of the binary tree. Returns
HIGHalgorithms/tree/construct_tree_postorder_preorder.py25Recursively construct a binary tree from preorder and postorder arrays. Uses a global pre_index to track the curren
HIGHalgorithms/tree/construct_tree_postorder_preorder.py72Construct a full binary tree and return its inorder traversal. Args: pre: The preorder traversal array.
HIGHalgorithms/tree/lowest_common_ancestor.py21Find the lowest common ancestor of two nodes in a binary tree. Args: root: The root of the binary tree.
HIGHalgorithms/tree/path_sum2.py22Find all root-to-leaf paths with the given sum (recursive DFS). Args: root: The root of the binary tree.
HIGHalgorithms/tree/path_sum2.py61Find all root-to-leaf paths with the given sum (DFS with stack). Args: root: The root of the binary tree.
HIGHalgorithms/tree/path_sum2.py90Find all root-to-leaf paths with the given sum (BFS with queue). Args: root: The root of the binary tree.
HIGHalgorithms/tree/longest_consecutive.py20Find the length of the longest parent-to-child consecutive sequence. Args: root: The root of the binary tre
HIGHalgorithms/tree/binary_tree_views.py28Return the values visible from the left side of the tree. Args: root: Root of the binary tree. Returns
HIGHalgorithms/tree/binary_tree_views.py60Return the values visible from the right side of the tree. Args: root: Root of the binary tree. Return
HIGHalgorithms/tree/binary_tree_views.py92Return the values visible when looking at the tree from above. Nodes are ordered by horizontal distance from root (
HIGHalgorithms/tree/binary_tree_views.py126Return the values visible when looking at the tree from below. Nodes are ordered by horizontal distance from root (
HIGHalgorithms/data_structures/b_tree.py124Search for a key in the B-tree. Args: key: The key to search for. Returns: Tru
HIGHalgorithms/data_structures/veb_tree.py155 Check whether element x exists in the tree. Args: x (int): Element to check. Retu
HIGHalgorithms/data_structures/veb_tree.py176 Return the smallest element greater than x in the tree. Args: x (int): Element to find suc
HIGHalgorithms/data_structures/sqrt_decomposition.py61Set ``data[index]`` to *value* and update the block sum. Args: index: Array index to update.
HIGHalgorithms/data_structures/sqrt_decomposition.py85Return the sum of elements from *left* to *right* inclusive. Args: left: Start index (inclusive).
HIGH…gorithms/bit_manipulation/flip_bit_longest_sequence.py18Find the longest 1-bit run achievable by flipping a single 0-bit. Tracks the current run length and the previous ru
HIGHalgorithms/bit_manipulation/count_ones.py18Count set bits using Brian Kernighan's algorithm (recursive). Args: number: A non-negative integer. Re
HIGHalgorithms/bit_manipulation/count_ones.py38Count set bits using Brian Kernighan's algorithm (iterative). Args: number: A non-negative integer. Re
HIGHalgorithms/bit_manipulation/binary_gap.py19Find the longest distance between consecutive 1-bits in binary. Args: number: A positive integer to examine
HIGHalgorithms/bit_manipulation/remove_bit.py18Remove the bit at a specific position from an integer. Splits the number around *position*, shifts the upper part r
HIGHalgorithms/bit_manipulation/reverse_bits.py17Reverse all 32 bits of an unsigned integer. Args: number: A 32-bit unsigned integer (0 to 2**32 - 1).
HIGHalgorithms/bit_manipulation/swap_pair.py18Swap every pair of adjacent bits in an integer. Masks odd-positioned bits (0xAAAAAAAA), shifts them right by one,
HIGHalgorithms/bit_manipulation/bit_operation.py18Get the bit value at a specific position. Shifts 1 over by *position* bits and ANDs with *number* to isolate th
HIGHalgorithms/bit_manipulation/bit_operation.py40Set the bit at a specific position to 1. Shifts 1 over by *position* bits and ORs with *number* so that only th
HIGHalgorithms/bit_manipulation/bit_operation.py60Clear the bit at a specific position to 0. Creates a mask with all bits set except at *position*, then ANDs wit
HIGHalgorithms/bit_manipulation/bit_operation.py81Update the bit at a specific position to a given value. First clears the bit at *position*, then ORs in the new *bi
HIGHalgorithms/bit_manipulation/single_number3.py19Find the two elements that each appear exactly once. Uses XOR to isolate the combined signature of the two unique v
HIGHalgorithms/bit_manipulation/single_number2.py19Find the element that appears once (all others appear three times). Uses two accumulators (*ones* and *twos*) to tr
HIGHalgorithms/bit_manipulation/insert_bit.py17Insert a single bit at a specific position in an integer. Splits the number at *position*, shifts the upper part le
HIGHalgorithms/bit_manipulation/insert_bit.py44Insert multiple bits at a specific position in an integer. Splits the number at *position*, shifts the upper part l
HIGHalgorithms/bit_manipulation/count_flips_to_convert.py19Count the number of bit flips needed to convert one integer to another. Args: first: The source integer.
HIGHalgorithms/bit_manipulation/power_of_two.py19Check whether an integer is a power of two. Args: number: The integer to test. Returns: True i
HIGHalgorithms/bit_manipulation/single_number.py18Find the element that appears only once (all others appear twice). XORs all values together; paired values cancel t
HIGHalgorithms/bit_manipulation/add_bitwise_operator.py18Add two non-negative integers using only bitwise operations. Args: first: First non-negative integer operan
HIGHalgorithms/bit_manipulation/subsets.py18Return all subsets of the given list as a set of tuples. Uses bitmask enumeration: for each number from 0 to 2^n -
HIGHalgorithms/bit_manipulation/bytes_int_conversion.py20Convert a non-negative integer to bytes in big-endian order. Args: number: A non-negative integer to conver
HIGHalgorithms/bit_manipulation/bytes_int_conversion.py40Convert a non-negative integer to bytes in little-endian order. Args: number: A non-negative integer to con
HIGHalgorithms/bit_manipulation/bytes_int_conversion.py60Convert a big-endian byte sequence to an integer. Args: byte_string: Bytes with the most significant byte f
HIGHalgorithms/bit_manipulation/bytes_int_conversion.py80Convert a little-endian byte sequence to an integer. Args: byte_string: Bytes with the least significant by
HIGHalgorithms/bit_manipulation/find_difference.py18Find the single character added to a shuffled copy of a string. Uses XOR on all character code points; paired chara
HIGHalgorithms/bit_manipulation/find_missing_number.py19Find the missing number using XOR. XORs every element with its expected index so that all paired values cancel
HIGHalgorithms/bit_manipulation/find_missing_number.py44Find the missing number using arithmetic summation. Computes the expected sum of 0..n and subtracts the actual sum
HIGHalgorithms/bit_manipulation/has_alternative_bit.py18Check for alternating bits by scanning each pair of adjacent bits. Args: number: A positive integer to chec
HIGHalgorithms/bit_manipulation/has_alternative_bit.py47Check for alternating bits using O(1) bitmask arithmetic. Args: number: A positive integer to check. R
HIGHalgorithms/array/longest_non_repeat.py18Find the length of the longest substring without repeating characters. Args: string: Input string to search
392 more matches not shown…
Unused Imports890 hits · 784 pts
SeverityFileLineSnippet
LOWalgorithms/__init__.py10
LOWalgorithms/__init__.py11
LOWalgorithms/__init__.py11
LOWalgorithms/__init__.py11
LOWalgorithms/tree/path_sum.py15
LOWalgorithms/tree/max_path_sum.py15
LOWalgorithms/tree/same_tree.py14
LOWalgorithms/tree/tree.py7
LOWalgorithms/tree/invert_tree.py13
LOWalgorithms/tree/is_balanced.py14
LOWalgorithms/tree/binary_tree_paths.py14
LOWalgorithms/tree/pretty_print.py14
LOWalgorithms/tree/is_symmetric.py14
LOWalgorithms/tree/is_subtree.py14
LOWalgorithms/tree/__init__.py8
LOWalgorithms/tree/__init__.py9
LOWalgorithms/tree/__init__.py10
LOWalgorithms/tree/__init__.py11
LOWalgorithms/tree/__init__.py12
LOWalgorithms/tree/__init__.py12
LOWalgorithms/tree/__init__.py12
LOWalgorithms/tree/__init__.py12
LOWalgorithms/tree/__init__.py18
LOWalgorithms/tree/__init__.py18
LOWalgorithms/tree/__init__.py22
LOWalgorithms/tree/__init__.py22
LOWalgorithms/tree/__init__.py23
LOWalgorithms/tree/__init__.py24
LOWalgorithms/tree/__init__.py25
LOWalgorithms/tree/__init__.py26
LOWalgorithms/tree/__init__.py26
LOWalgorithms/tree/__init__.py27
LOWalgorithms/tree/__init__.py28
LOWalgorithms/tree/__init__.py29
LOWalgorithms/tree/__init__.py30
LOWalgorithms/tree/__init__.py31
LOWalgorithms/tree/__init__.py31
LOWalgorithms/tree/__init__.py32
LOWalgorithms/tree/__init__.py32
LOWalgorithms/tree/__init__.py32
LOWalgorithms/tree/__init__.py33
LOWalgorithms/tree/__init__.py33
LOWalgorithms/tree/__init__.py33
LOWalgorithms/tree/__init__.py34
LOWalgorithms/tree/__init__.py35
LOWalgorithms/tree/__init__.py36
LOWalgorithms/tree/max_height.py14
LOWalgorithms/tree/min_height.py14
LOWalgorithms/tree/bin_tree_to_list.py14
LOWalgorithms/tree/construct_tree_postorder_preorder.py15
LOWalgorithms/tree/lowest_common_ancestor.py15
LOWalgorithms/tree/path_sum2.py14
LOWalgorithms/tree/longest_consecutive.py14
LOWalgorithms/tree/binary_tree_views.py20
LOWalgorithms/tree/deepest_left.py14
LOWalgorithms/data_structures/queue.py14
LOW…rithms/data_structures/separate_chaining_hash_table.py14
LOWalgorithms/data_structures/heap.py15
LOWalgorithms/data_structures/hash_table.py15
LOWalgorithms/data_structures/b_tree.py15
830 more matches not shown…
Hyper-Verbose Identifiers140 hits · 154 pts
SeverityFileLineSnippet
LOWalgorithms/data_structures/b_tree.py281 def _remove_from_nonleaf_node(
LOWalgorithms/data_structures/b_tree.py304 def _find_largest_and_delete_in_left_subtree(self, node: Node) -> int:
LOWalgorithms/data_structures/b_tree.py323 def _find_largest_and_delete_in_right_subtree(self, node: Node) -> int:
LOWalgorithms/bit_manipulation/bytes_int_conversion.py39def int_to_bytes_little_endian(number: int) -> bytes:
LOWalgorithms/bit_manipulation/bytes_int_conversion.py79def bytes_little_endian_to_int(byte_string: bytes) -> int:
LOWalgorithms/array/n_sum.py102 def _append_elem_to_each_list(
LOWalgorithms/backtracking/array_sum_combinations.py78def unique_array_sum_combinations(
LOWalgorithms/backtracking/palindrome_partitioning.py43def palindromic_substrings_iter(text: str) -> Generator[list[str], None, None]:
LOWalgorithms/graph/bellman_ford.py58def _initialize_single_source(
LOW…thms/dynamic_programming/longest_common_subsequence.py16def longest_common_subsequence(s_1: str, s_2: str) -> int:
LOWalgorithms/dynamic_programming/longest_increasing.py23def longest_increasing_subsequence(sequence: list[int]) -> int:
LOWalgorithms/dynamic_programming/longest_increasing.py45def longest_increasing_subsequence_optimized(sequence: list[int]) -> int:
LOWalgorithms/dynamic_programming/max_product_subarray.py45def subarray_with_max_product(arr: list[int]) -> tuple[int, list[int]]:
LOWalgorithms/dynamic_programming/combination_sum.py61def combination_sum_bottom_up(nums: list[int], target: int) -> int:
LOWalgorithms/math/diffie_hellman_key_exchange.py186def diffie_hellman_key_exchange(a: int, p: int, option: int | None = None) -> bool:
LOWalgorithms/math/distance_between_two_points.py19def distance_between_two_points(x1: float, y1: float, x2: float, y2: float) -> float:
LOWalgorithms/math/recursive_binomial_coefficient.py17def recursive_binomial_coefficient(n: int, k: int) -> int:
LOWalgorithms/math/symmetry_group_cycle_index.py49def cycle_product_for_two_polynomials(
LOWalgorithms/streaming/one_sparse_recovery.py51def _check_bit_sum_consistency(bitsum: list[int], sum_signs: int) -> bool:
LOWalgorithms/map/longest_palindromic_subsequence.py17def longest_palindromic_subsequence(s: str) -> int:
LOWalgorithms/compression/huffman_coding.py62 def get_number_of_additional_bits_in_the_last_byte(self) -> int:
LOWalgorithms/compression/huffman_coding.py218 def _save_information_about_additional_bits(self, additional_bits: int) -> None:
LOWalgorithms/compression/huffman_coding.py302 def _decode_and_write_signs_to_file(
LOWalgorithms/compression/huffman_coding.py357 def _encode_and_write_signs_to_file(
LOWalgorithms/compression/huffman_coding.py438 def _go_through_tree_and_create_codes(
LOWalgorithms/greedy/max_contiguous_subsequence_sum.py17def max_contiguous_subsequence_sum(arr: list[int]) -> int:
LOWalgorithms/string/delete_reoccurring.py17def delete_reoccurring_characters(string: str) -> str:
LOWalgorithms/string/is_palindrome.py98def is_palindrome_two_pointer(text: str) -> bool:
LOWalgorithms/string/fizzbuzz.py53def fizzbuzz_with_helper_func(number: int) -> list[int | str]:
LOWalgorithms/string/longest_common_prefix.py98def _longest_common_recursive(strings: list[str], left: int, right: int) -> str:
LOWalgorithms/string/validate_coordinates.py68def is_valid_coordinates_regular_expression(coordinates: str) -> bool:
LOWalgorithms/matrix/search_in_sorted_matrix.py18def search_in_a_sorted_matrix(
LOWalgorithms/matrix/sparse_dot_vector.py17def vector_to_index_value_list(
LOWalgorithms/matrix/crout_matrix_decomposition.py19def crout_matrix_decomposition(
LOWtests/test_iterative_segment_tree.py18 def test_segment_tree_creation(self):
LOWtests/test_iterative_segment_tree.py53 def test_max_segment_tree_with_updates(self):
LOWtests/test_iterative_segment_tree.py71 def test_min_segment_tree_with_updates(self):
LOWtests/test_iterative_segment_tree.py89 def test_sum_segment_tree_with_updates(self):
LOWtests/test_iterative_segment_tree.py107 def test_gcd_segment_tree_with_updates(self):
LOWtests/test_iterative_segment_tree.py135 def __test_all_segments_with_updates(self, arr, fnc, upd):
LOWtests/test_data_structures.py29 def test_insert_multiple_sorted(self):
LOWtests/test_data_structures.py45 def test_insert_duplicates_order(self):
LOWtests/test_data_structures.py59 def test_insert_multiple_root_exists(self):
LOWtests/test_data_structures.py65 def test_balanced_after_insert(self):
LOWtests/test_data_structures.py77 def test_in_order_traverse_populated(self):
LOWtests/test_data_structures.py83 def test_insert_balance_factor(self):
LOWtests/test_data_structures.py147 def test_count_decrements_on_unite(self):
LOWtests/test_data_structures.py162 def test_transitive_connectivity(self):
LOWtests/test_data_structures.py180 def test_single_element_query(self):
LOWtests/test_data_structures.py233 def test_resizes_automatically(self):
LOWtests/test_tree.py63 def test_insertion_and_find_even_degree(self):
LOWtests/test_tree.py72 def test_insertion_and_find_odd_degree(self):
LOWtests/test_tree.py81 def test_deletion_even_degree(self):
LOWtests/test_backtracking.py75 def test_array_sum_combinations(self):
LOWtests/test_backtracking.py97 def test_unique_array_sum_combinations(self):
LOWtests/test_backtracking.py140 def test_recursive_get_factors(self):
LOWtests/test_backtracking.py194 def test_generate_abbreviations(self):
LOWtests/test_backtracking.py269 def test_generate_parenthesis(self):
LOWtests/test_backtracking.py294 def test_palindromic_substrings(self):
LOWtests/test_stack.py72 def test_is_valid_parenthesis(self):
80 more matches not shown…
Cross-Language Confusion26 hits · 139 pts
SeverityFileLineSnippet
HIGHalgorithms/tree/bst_delete_node.py14root = [5,3,6,2,4,null,7]
HIGHalgorithms/tree/bst_delete_node.py25One valid answer is [5,4,6,2,null,null,7], shown in the following BST.
HIGHalgorithms/tree/bst_delete_node.py33Another valid answer is [5,2,6,null,4,null,7].
HIGHalgorithms/tree/traversal_zigzag.py8Given binary tree [3,9,20,null,null,15,7],
HIGHalgorithms/tree/traversal_level_order.py6Given binary tree [3,9,20,null,null,15,7],
HIGHalgorithms/data_structures/red_black_tree.py86 # case 1 the parent is null, then set the inserted node as root and color = 0
HIGHalgorithms/data_structures/red_black_tree.py106 # case 3.2 the uncle node is black or null,
HIGHalgorithms/data_structures/red_black_tree.py129 # case 3.2 the uncle node is black or null,
HIGHalgorithms/data_structures/stack.py63 >>> s.push(1)
HIGHalgorithms/data_structures/stack.py142 >>> s.push(1)
HIGHalgorithms/data_structures/priority_queue.py70 self.push(item, priority=priority)
HIGHalgorithms/linked_list/copy_random_pointer.py5could point to any node in the list or null, return a deep copy of the list.
HIGHalgorithms/stack/ordered_stack.py23 >>> s.push(3)
HIGHalgorithms/stack/ordered_stack.py24 >>> s.push(1)
HIGHalgorithms/stack/ordered_stack.py25 >>> s.push(2)
HIGHtests/test_stack.py88 stack.push(1)
HIGHtests/test_stack.py89 stack.push(2)
HIGHtests/test_stack.py90 stack.push(3)
HIGHtests/test_stack.py121 stack.push(1)
HIGHtests/test_stack.py122 stack.push(2)
HIGHtests/test_stack.py123 stack.push(3)
HIGHtests/test_stack.py156 stack.push(1)
HIGHtests/test_stack.py157 stack.push(4)
HIGHtests/test_stack.py158 stack.push(3)
HIGHtests/test_stack.py159 stack.push(6)
HIGHtests/test_queue.py105 queue.push(2)
Deep Nesting47 hits · 47 pts
SeverityFileLineSnippet
LOWalgorithms/data_structures/red_black_tree.py85
LOWalgorithms/data_structures/red_black_tree.py208
LOWalgorithms/array/n_sum.py21
LOWalgorithms/array/n_sum.py80
LOWalgorithms/array/three_sum.py17
LOWalgorithms/array/garage.py18
LOWalgorithms/backtracking/permute_unique.py17
LOWalgorithms/backtracking/pattern_match.py37
LOWalgorithms/graph/traversal.py18
LOWalgorithms/graph/traversal.py44
LOWalgorithms/graph/count_islands_bfs.py20
LOWalgorithms/graph/bellman_ford.py18
LOWalgorithms/graph/all_pairs_shortest_path.py19
LOWalgorithms/graph/word_ladder.py20
LOWalgorithms/graph/maximum_flow_dfs.py20
LOWalgorithms/graph/maximum_flow_bfs.py21
LOWalgorithms/graph/topological_sort_dfs.py59
LOWalgorithms/graph/check_bipartite.py18
LOWalgorithms/graph/blossom.py17
LOWalgorithms/graph/blossom.py35
LOWalgorithms/graph/maximum_flow.py85
LOW…thms/dynamic_programming/longest_common_subsequence.py16
LOWalgorithms/dynamic_programming/regex_matching.py17
LOWalgorithms/dynamic_programming/matrix_chain_order.py19
LOWalgorithms/dynamic_programming/int_divide.py17
LOWalgorithms/dynamic_programming/k_factor.py18
LOWalgorithms/dynamic_programming/egg_drop.py19
LOWalgorithms/linked_list/is_palindrome.py85
LOWalgorithms/math/polynomial.py319
LOWalgorithms/math/polynomial.py388
LOWalgorithms/math/polynomial.py435
LOWalgorithms/math/polynomial.py484
LOWalgorithms/streaming/misra_gries.py18
LOWalgorithms/map/longest_palindromic_subsequence.py17
LOWalgorithms/compression/huffman_coding.py302
LOWalgorithms/sorting/cycle_sort.py18
LOWalgorithms/string/breaking_bad.py80
LOWalgorithms/string/strip_url_params.py21
LOWalgorithms/string/fizzbuzz.py17
LOWalgorithms/string/text_justification.py18
LOWalgorithms/string/atbash_cipher.py17
LOWalgorithms/string/decode_string.py18
LOWalgorithms/set/set_covering.py76
LOWalgorithms/matrix/sparse_mul.py18
LOWalgorithms/matrix/sum_sub_squares.py17
LOWalgorithms/matrix/matrix_inversion.py21
LOWalgorithms/matrix/sudoku_validator.py20
Decorative Section Separators6 hits · 18 pts
SeverityFileLineSnippet
MEDIUMalgorithms/tree/bst_validate_bst.py1# ===============================================================================
MEDIUMalgorithms/tree/bst_validate_bst.py13# ===============================================================================
MEDIUMtests/test_issue_fixes.py18# ── Dijkstra with priority queue (#565) ────────────────────────────────
MEDIUMtests/test_issue_fixes.py68# ── Goldbach's conjecture (#908) ────────────────────────────────────────
MEDIUMtests/test_issue_fixes.py106# ── Binary tree views (#829) ────────────────────────────────────────────
MEDIUMtests/test_issue_fixes.py176# ── Square root decomposition (#651) ────────────────────────────────────
Redundant / Tautological Comments3 hits · 7 pts
SeverityFileLineSnippet
LOWtests/test_polynomial.py195 # Check if quotient from poly_long_division matches expected
LOWtests/test_polynomial.py198 # Check if remainder from poly_long_division matches expected
LOWtests/test_polynomial.py201 # Check if quotient from __truediv__ matches quotient from poly_long_division
Overly Generic Function Names3 hits · 3 pts
SeverityFileLineSnippet
LOWalgorithms/tree/bst_kth_smallest.py33 def helper(self, node, count):
LOWalgorithms/dynamic_programming/count_paths_dp.py25 def helper(i: int, j: int) -> int:
LOWtests/test_searching.py29 def helper(array, query):
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippet
LOWalgorithms/tree/bst_validate_bst.py70# Example usage
Over-Commented Block1 hit · 1 pts
SeverityFileLineSnippet
LOWalgorithms/tree/bst_closest_value.py1# Given a non-empty binary search tree and a target value,
Excessive Try-Catch Wrapping1 hit · 1 pts
SeverityFileLineSnippet
LOWalgorithms/math/pythagoras.py47 except Exception as err: