Repository Analysis

krahets/hello-algo

《Hello 算法》:动画图解、一键运行的数据结构与算法教程。支持简中、繁中、English、日本語,提供 Python, Java, C++, C, C#, JS, Go, Swift, Rust, Ruby, Kotlin, TS, Dart 等代码实现

6.9 Low AI signal View on GitHub
6.9
Adjusted Score
6.9
Raw Score
100%
Time Factor
2026-04-18
Last Push
126,475
Stars
Java
Language
523,674
Lines of Code
6828
Files
944
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 600MEDIUM 21LOW 323

Pattern Findings

944 matches across 10 categories. Click a row to expand file-level details.

Cross-File Repetition420 hits · 2100 pts
SeverityFileLineSnippet
HIGHzh-hant/codes/python/chapter_searching/binary_search.py0file: binary_search.py created time: 2022-11-26 author: timi (xisunyy@163.com)
HIGHja/codes/python/chapter_searching/binary_search.py0file: binary_search.py created time: 2022-11-26 author: timi (xisunyy@163.com)
HIGHru/codes/python/chapter_searching/binary_search.py0file: binary_search.py created time: 2022-11-26 author: timi (xisunyy@163.com)
HIGHcodes/python/chapter_searching/binary_search.py0file: binary_search.py created time: 2022-11-26 author: timi (xisunyy@163.com)
HIGHen/codes/python/chapter_searching/binary_search.py0file: binary_search.py created time: 2022-11-26 author: timi (xisunyy@163.com)
HIGH…es/python/chapter_searching/binary_search_insertion.py0file: binary_search_insertion.py created time: 2023-08-04 author: krahets (krahets@163.com)
HIGH…es/python/chapter_searching/binary_search_insertion.py0file: binary_search_insertion.py created time: 2023-08-04 author: krahets (krahets@163.com)
HIGH…es/python/chapter_searching/binary_search_insertion.py0file: binary_search_insertion.py created time: 2023-08-04 author: krahets (krahets@163.com)
HIGH…es/python/chapter_searching/binary_search_insertion.py0file: binary_search_insertion.py created time: 2023-08-04 author: krahets (krahets@163.com)
HIGH…es/python/chapter_searching/binary_search_insertion.py0file: binary_search_insertion.py created time: 2023-08-04 author: krahets (krahets@163.com)
HIGH…-hant/codes/python/chapter_searching/hashing_search.py0file: hashing_search.py created time: 2022-11-26 author: timi (xisunyy@163.com)
HIGHja/codes/python/chapter_searching/hashing_search.py0file: hashing_search.py created time: 2022-11-26 author: timi (xisunyy@163.com)
HIGHru/codes/python/chapter_searching/hashing_search.py0file: hashing_search.py created time: 2022-11-26 author: timi (xisunyy@163.com)
HIGHcodes/python/chapter_searching/hashing_search.py0file: hashing_search.py created time: 2022-11-26 author: timi (xisunyy@163.com)
HIGHen/codes/python/chapter_searching/hashing_search.py0file: hashing_search.py created time: 2022-11-26 author: timi (xisunyy@163.com)
HIGH…t/codes/python/chapter_searching/binary_search_edge.py0file: binary_search_edge.py created time: 2023-08-04 author: krahets (krahets@163.com)
HIGHja/codes/python/chapter_searching/binary_search_edge.py0file: binary_search_edge.py created time: 2023-08-04 author: krahets (krahets@163.com)
HIGHru/codes/python/chapter_searching/binary_search_edge.py0file: binary_search_edge.py created time: 2023-08-04 author: krahets (krahets@163.com)
HIGHcodes/python/chapter_searching/binary_search_edge.py0file: binary_search_edge.py created time: 2023-08-04 author: krahets (krahets@163.com)
HIGHen/codes/python/chapter_searching/binary_search_edge.py0file: binary_search_edge.py created time: 2023-08-04 author: krahets (krahets@163.com)
HIGHzh-hant/codes/python/chapter_searching/linear_search.py0file: linear_search.py created time: 2022-11-26 author: timi (xisunyy@163.com)
HIGHja/codes/python/chapter_searching/linear_search.py0file: linear_search.py created time: 2022-11-26 author: timi (xisunyy@163.com)
HIGHru/codes/python/chapter_searching/linear_search.py0file: linear_search.py created time: 2022-11-26 author: timi (xisunyy@163.com)
HIGHcodes/python/chapter_searching/linear_search.py0file: linear_search.py created time: 2022-11-26 author: timi (xisunyy@163.com)
HIGHen/codes/python/chapter_searching/linear_search.py0file: linear_search.py created time: 2022-11-26 author: timi (xisunyy@163.com)
HIGHzh-hant/codes/python/chapter_searching/two_sum.py0file: two_sum.py created time: 2022-11-25 author: krahets (krahets@163.com)
HIGHja/codes/python/chapter_searching/two_sum.py0file: two_sum.py created time: 2022-11-25 author: krahets (krahets@163.com)
HIGHru/codes/python/chapter_searching/two_sum.py0file: two_sum.py created time: 2022-11-25 author: krahets (krahets@163.com)
HIGHcodes/python/chapter_searching/two_sum.py0file: two_sum.py created time: 2022-11-25 author: krahets (krahets@163.com)
HIGHen/codes/python/chapter_searching/two_sum.py0file: two_sum.py created time: 2022-11-25 author: krahets (krahets@163.com)
HIGHzh-hant/codes/python/chapter_sorting/bucket_sort.py0file: bucket_sort.py created time: 2023-03-30 author: krahets (krahets@163.com)
HIGHja/codes/python/chapter_sorting/bucket_sort.py0file: bucket_sort.py created time: 2023-03-30 author: krahets (krahets@163.com)
HIGHru/codes/python/chapter_sorting/bucket_sort.py0file: bucket_sort.py created time: 2023-03-30 author: krahets (krahets@163.com)
HIGHcodes/python/chapter_sorting/bucket_sort.py0file: bucket_sort.py created time: 2023-03-30 author: krahets (krahets@163.com)
HIGHen/codes/python/chapter_sorting/bucket_sort.py0file: bucket_sort.py created time: 2023-03-30 author: krahets (krahets@163.com)
HIGHzh-hant/codes/python/chapter_sorting/quick_sort.py0file: quick_sort.py created time: 2022-11-25 author: timi (xisunyy@163.com)
HIGHja/codes/python/chapter_sorting/quick_sort.py0file: quick_sort.py created time: 2022-11-25 author: timi (xisunyy@163.com)
HIGHru/codes/python/chapter_sorting/quick_sort.py0file: quick_sort.py created time: 2022-11-25 author: timi (xisunyy@163.com)
HIGHcodes/python/chapter_sorting/quick_sort.py0file: quick_sort.py created time: 2022-11-25 author: timi (xisunyy@163.com)
HIGHen/codes/python/chapter_sorting/quick_sort.py0file: quick_sort.py created time: 2022-11-25 author: timi (xisunyy@163.com)
HIGHzh-hant/codes/python/chapter_sorting/merge_sort.py0file: merge_sort.py created time: 2022-11-25 author: timi (xisunyy@163.com), krahets (krahets@163.com)
HIGHja/codes/python/chapter_sorting/merge_sort.py0file: merge_sort.py created time: 2022-11-25 author: timi (xisunyy@163.com), krahets (krahets@163.com)
HIGHru/codes/python/chapter_sorting/merge_sort.py0file: merge_sort.py created time: 2022-11-25 author: timi (xisunyy@163.com), krahets (krahets@163.com)
HIGHcodes/python/chapter_sorting/merge_sort.py0file: merge_sort.py created time: 2022-11-25 author: timi (xisunyy@163.com), krahets (krahets@163.com)
HIGHen/codes/python/chapter_sorting/merge_sort.py0file: merge_sort.py created time: 2022-11-25 author: timi (xisunyy@163.com), krahets (krahets@163.com)
HIGHzh-hant/codes/python/chapter_sorting/insertion_sort.py0file: insertion_sort.py created time: 2022-11-25 author: timi (xisunyy@163.com)
HIGHja/codes/python/chapter_sorting/insertion_sort.py0file: insertion_sort.py created time: 2022-11-25 author: timi (xisunyy@163.com)
HIGHru/codes/python/chapter_sorting/insertion_sort.py0file: insertion_sort.py created time: 2022-11-25 author: timi (xisunyy@163.com)
HIGHcodes/python/chapter_sorting/insertion_sort.py0file: insertion_sort.py created time: 2022-11-25 author: timi (xisunyy@163.com)
HIGHen/codes/python/chapter_sorting/insertion_sort.py0file: insertion_sort.py created time: 2022-11-25 author: timi (xisunyy@163.com)
HIGHzh-hant/codes/python/chapter_sorting/bubble_sort.py0file: bubble_sort.py created time: 2022-11-25 author: timi (xisunyy@163.com)
HIGHja/codes/python/chapter_sorting/bubble_sort.py0file: bubble_sort.py created time: 2022-11-25 author: timi (xisunyy@163.com)
HIGHru/codes/python/chapter_sorting/bubble_sort.py0file: bubble_sort.py created time: 2022-11-25 author: timi (xisunyy@163.com)
HIGHcodes/python/chapter_sorting/bubble_sort.py0file: bubble_sort.py created time: 2022-11-25 author: timi (xisunyy@163.com)
HIGHen/codes/python/chapter_sorting/bubble_sort.py0file: bubble_sort.py created time: 2022-11-25 author: timi (xisunyy@163.com)
HIGHzh-hant/codes/python/chapter_sorting/selection_sort.py0file: selection_sort.py created time: 2023-05-22 author: krahets (krahets@163.com)
HIGHja/codes/python/chapter_sorting/selection_sort.py0file: selection_sort.py created time: 2023-05-22 author: krahets (krahets@163.com)
HIGHru/codes/python/chapter_sorting/selection_sort.py0file: selection_sort.py created time: 2023-05-22 author: krahets (krahets@163.com)
HIGHcodes/python/chapter_sorting/selection_sort.py0file: selection_sort.py created time: 2023-05-22 author: krahets (krahets@163.com)
HIGHen/codes/python/chapter_sorting/selection_sort.py0file: selection_sort.py created time: 2023-05-22 author: krahets (krahets@163.com)
360 more matches not shown…
Cross-Language Confusion120 hits · 850 pts
SeverityFileLineSnippet
HIGHzh-hant/codes/python/chapter_heap/my_heap.py122 max_heap.push(val)
HIGH…nt/codes/python/chapter_stack_and_queue/array_stack.py50 stack.push(1)
HIGH…nt/codes/python/chapter_stack_and_queue/array_stack.py51 stack.push(3)
HIGH…nt/codes/python/chapter_stack_and_queue/array_stack.py52 stack.push(2)
HIGH…nt/codes/python/chapter_stack_and_queue/array_stack.py53 stack.push(5)
HIGH…nt/codes/python/chapter_stack_and_queue/array_stack.py54 stack.push(4)
HIGH…des/python/chapter_stack_and_queue/linkedlist_stack.py67 stack.push(1)
HIGH…des/python/chapter_stack_and_queue/linkedlist_stack.py68 stack.push(3)
HIGH…des/python/chapter_stack_and_queue/linkedlist_stack.py69 stack.push(2)
HIGH…des/python/chapter_stack_and_queue/linkedlist_stack.py70 stack.push(5)
HIGH…des/python/chapter_stack_and_queue/linkedlist_stack.py71 stack.push(4)
HIGH…nt/codes/python/chapter_stack_and_queue/array_queue.py70 queue.push(1)
HIGH…nt/codes/python/chapter_stack_and_queue/array_queue.py71 queue.push(3)
HIGH…nt/codes/python/chapter_stack_and_queue/array_queue.py72 queue.push(2)
HIGH…nt/codes/python/chapter_stack_and_queue/array_queue.py73 queue.push(5)
HIGH…nt/codes/python/chapter_stack_and_queue/array_queue.py74 queue.push(4)
HIGH…nt/codes/python/chapter_stack_and_queue/array_queue.py96 queue.push(i)
HIGH…des/python/chapter_stack_and_queue/linkedlist_deque.py57 self.push(num, True)
HIGH…des/python/chapter_stack_and_queue/linkedlist_deque.py61 self.push(num, False)
HIGH…des/python/chapter_stack_and_queue/linkedlist_queue.py75 queue.push(1)
HIGH…des/python/chapter_stack_and_queue/linkedlist_queue.py76 queue.push(3)
HIGH…des/python/chapter_stack_and_queue/linkedlist_queue.py77 queue.push(2)
HIGH…des/python/chapter_stack_and_queue/linkedlist_queue.py78 queue.push(5)
HIGH…des/python/chapter_stack_and_queue/linkedlist_queue.py79 queue.push(4)
HIGHja/codes/python/chapter_heap/my_heap.py122 max_heap.push(val)
HIGHja/codes/python/chapter_stack_and_queue/array_stack.py50 stack.push(1)
HIGHja/codes/python/chapter_stack_and_queue/array_stack.py51 stack.push(3)
HIGHja/codes/python/chapter_stack_and_queue/array_stack.py52 stack.push(2)
HIGHja/codes/python/chapter_stack_and_queue/array_stack.py53 stack.push(5)
HIGHja/codes/python/chapter_stack_and_queue/array_stack.py54 stack.push(4)
HIGH…des/python/chapter_stack_and_queue/linkedlist_stack.py67 stack.push(1)
HIGH…des/python/chapter_stack_and_queue/linkedlist_stack.py68 stack.push(3)
HIGH…des/python/chapter_stack_and_queue/linkedlist_stack.py69 stack.push(2)
HIGH…des/python/chapter_stack_and_queue/linkedlist_stack.py70 stack.push(5)
HIGH…des/python/chapter_stack_and_queue/linkedlist_stack.py71 stack.push(4)
HIGHja/codes/python/chapter_stack_and_queue/array_queue.py70 queue.push(1)
HIGHja/codes/python/chapter_stack_and_queue/array_queue.py71 queue.push(3)
HIGHja/codes/python/chapter_stack_and_queue/array_queue.py72 queue.push(2)
HIGHja/codes/python/chapter_stack_and_queue/array_queue.py73 queue.push(5)
HIGHja/codes/python/chapter_stack_and_queue/array_queue.py74 queue.push(4)
HIGHja/codes/python/chapter_stack_and_queue/array_queue.py96 queue.push(i)
HIGH…des/python/chapter_stack_and_queue/linkedlist_deque.py57 self.push(num, True)
HIGH…des/python/chapter_stack_and_queue/linkedlist_deque.py61 self.push(num, False)
HIGH…des/python/chapter_stack_and_queue/linkedlist_queue.py75 queue.push(1)
HIGH…des/python/chapter_stack_and_queue/linkedlist_queue.py76 queue.push(3)
HIGH…des/python/chapter_stack_and_queue/linkedlist_queue.py77 queue.push(2)
HIGH…des/python/chapter_stack_and_queue/linkedlist_queue.py78 queue.push(5)
HIGH…des/python/chapter_stack_and_queue/linkedlist_queue.py79 queue.push(4)
HIGHru/codes/python/chapter_heap/my_heap.py122 max_heap.push(val)
HIGHru/codes/python/chapter_stack_and_queue/array_stack.py50 stack.push(1)
HIGHru/codes/python/chapter_stack_and_queue/array_stack.py51 stack.push(3)
HIGHru/codes/python/chapter_stack_and_queue/array_stack.py52 stack.push(2)
HIGHru/codes/python/chapter_stack_and_queue/array_stack.py53 stack.push(5)
HIGHru/codes/python/chapter_stack_and_queue/array_stack.py54 stack.push(4)
HIGH…des/python/chapter_stack_and_queue/linkedlist_stack.py67 stack.push(1)
HIGH…des/python/chapter_stack_and_queue/linkedlist_stack.py68 stack.push(3)
HIGH…des/python/chapter_stack_and_queue/linkedlist_stack.py69 stack.push(2)
HIGH…des/python/chapter_stack_and_queue/linkedlist_stack.py70 stack.push(5)
HIGH…des/python/chapter_stack_and_queue/linkedlist_stack.py71 stack.push(4)
HIGHru/codes/python/chapter_stack_and_queue/array_queue.py70 queue.push(1)
60 more matches not shown…
Cross-Language Confusion (JS/TS)60 hits · 300 pts
SeverityFileLineSnippet
HIGH…typescript/chapter_stack_and_queue/linkedlist_deque.ts119 print(): void {
HIGH…des/typescript/chapter_graph/graph_adjacency_matrix.ts89 print(): void {
HIGH…codes/typescript/chapter_graph/graph_adjacency_list.ts83 print(): void {
HIGH…/codes/typescript/chapter_hashing/hash_map_chaining.ts110 print(): void {
HIGH…typescript/chapter_hashing/hash_map_open_addressing.ts144 print(): void {
HIGHzh-hant/codes/javascript/chapter_heap/my_heap.js115 print() {
HIGH…javascript/chapter_stack_and_queue/linkedlist_deque.js119 print() {
HIGH…codes/javascript/chapter_graph/graph_adjacency_list.js83 print() {
HIGH…des/javascript/chapter_graph/graph_adjacency_matrix.js89 print() {
HIGH…/codes/javascript/chapter_hashing/hash_map_chaining.js108 print() {
HIGH…ant/codes/javascript/chapter_hashing/array_hash_map.js83 print() {
HIGH…javascript/chapter_hashing/hash_map_open_addressing.js141 print() {
HIGH…typescript/chapter_stack_and_queue/linkedlist_deque.ts119 print(): void {
HIGH…des/typescript/chapter_graph/graph_adjacency_matrix.ts89 print(): void {
HIGH…codes/typescript/chapter_graph/graph_adjacency_list.ts83 print(): void {
HIGH…/codes/typescript/chapter_hashing/hash_map_chaining.ts110 print(): void {
HIGH…typescript/chapter_hashing/hash_map_open_addressing.ts144 print(): void {
HIGHja/codes/javascript/chapter_heap/my_heap.js115 print() {
HIGH…javascript/chapter_stack_and_queue/linkedlist_deque.js119 print() {
HIGH…codes/javascript/chapter_graph/graph_adjacency_list.js83 print() {
HIGH…des/javascript/chapter_graph/graph_adjacency_matrix.js89 print() {
HIGH…/codes/javascript/chapter_hashing/hash_map_chaining.js108 print() {
HIGHja/codes/javascript/chapter_hashing/array_hash_map.js83 print() {
HIGH…javascript/chapter_hashing/hash_map_open_addressing.js141 print() {
HIGH…typescript/chapter_stack_and_queue/linkedlist_deque.ts119 print(): void {
HIGH…des/typescript/chapter_graph/graph_adjacency_matrix.ts89 print(): void {
HIGH…codes/typescript/chapter_graph/graph_adjacency_list.ts83 print(): void {
HIGH…/codes/typescript/chapter_hashing/hash_map_chaining.ts110 print(): void {
HIGH…typescript/chapter_hashing/hash_map_open_addressing.ts144 print(): void {
HIGHru/codes/javascript/chapter_heap/my_heap.js115 print() {
HIGH…javascript/chapter_stack_and_queue/linkedlist_deque.js119 print() {
HIGH…codes/javascript/chapter_graph/graph_adjacency_list.js83 print() {
HIGH…des/javascript/chapter_graph/graph_adjacency_matrix.js89 print() {
HIGH…/codes/javascript/chapter_hashing/hash_map_chaining.js108 print() {
HIGHru/codes/javascript/chapter_hashing/array_hash_map.js83 print() {
HIGH…javascript/chapter_hashing/hash_map_open_addressing.js141 print() {
HIGH…typescript/chapter_stack_and_queue/linkedlist_deque.ts119 print(): void {
HIGH…des/typescript/chapter_graph/graph_adjacency_matrix.ts89 print(): void {
HIGHcodes/typescript/chapter_graph/graph_adjacency_list.ts83 print(): void {
HIGHcodes/typescript/chapter_hashing/hash_map_chaining.ts110 print(): void {
HIGH…typescript/chapter_hashing/hash_map_open_addressing.ts144 print(): void {
HIGHcodes/javascript/chapter_heap/my_heap.js115 print() {
HIGH…javascript/chapter_stack_and_queue/linkedlist_deque.js119 print() {
HIGHcodes/javascript/chapter_graph/graph_adjacency_list.js83 print() {
HIGH…des/javascript/chapter_graph/graph_adjacency_matrix.js89 print() {
HIGHcodes/javascript/chapter_hashing/hash_map_chaining.js108 print() {
HIGHcodes/javascript/chapter_hashing/array_hash_map.js83 print() {
HIGH…javascript/chapter_hashing/hash_map_open_addressing.js141 print() {
HIGH…typescript/chapter_stack_and_queue/linkedlist_deque.ts119 print(): void {
HIGH…des/typescript/chapter_graph/graph_adjacency_matrix.ts89 print(): void {
HIGH…codes/typescript/chapter_graph/graph_adjacency_list.ts83 print(): void {
HIGH…/codes/typescript/chapter_hashing/hash_map_chaining.ts110 print(): void {
HIGH…typescript/chapter_hashing/hash_map_open_addressing.ts144 print(): void {
HIGHen/codes/javascript/chapter_heap/my_heap.js115 print() {
HIGH…javascript/chapter_stack_and_queue/linkedlist_deque.js119 print() {
HIGH…codes/javascript/chapter_graph/graph_adjacency_list.js83 print() {
HIGH…des/javascript/chapter_graph/graph_adjacency_matrix.js89 print() {
HIGH…/codes/javascript/chapter_hashing/hash_map_chaining.js108 print() {
HIGHen/codes/javascript/chapter_hashing/array_hash_map.js83 print() {
HIGH…javascript/chapter_hashing/hash_map_open_addressing.js141 print() {
Hyper-Verbose Identifiers100 hits · 100 pts
SeverityFileLineSnippet
LOW…es/python/chapter_searching/binary_search_insertion.py8def binary_search_insertion_simple(nums: list[int], target: int) -> int:
LOW…-hant/codes/python/chapter_searching/hashing_search.py21def hashing_search_linkedlist(
LOW…r_dynamic_programming/climbing_stairs_constraint_dp.py8def climbing_stairs_constraint_dp(n: int) -> int:
LOW…ter_dynamic_programming/min_cost_climbing_stairs_dp.py8def min_cost_climbing_stairs_dp(cost: list[int]) -> int:
LOW…ter_dynamic_programming/min_cost_climbing_stairs_dp.py23def min_cost_climbing_stairs_dp_comp(cost: list[int]) -> int:
LOW…apter_dynamic_programming/climbing_stairs_backtrack.py23def climbing_stairs_backtrack(n: int) -> int:
LOW…thon/chapter_dynamic_programming/unbounded_knapsack.py25def unbounded_knapsack_dp_comp(wgt: list[int], val: list[int], cap: int) -> int:
LOW…ypescript/chapter_searching/binary_search_insertion.ts8function binarySearchInsertionSimple(
LOW…ter_dynamic_programming/min_cost_climbing_stairs_dp.ts26function minCostClimbingStairsDPComp(cost: Array<number>): number {
LOW…r_dynamic_programming/climbing_stairs_constraint_dp.ts8function climbingStairsConstraintDP(n: number): number {
LOW…avascript/chapter_searching/binary_search_insertion.js8function binarySearchInsertionSimple(nums, target) {
LOW…ter_dynamic_programming/min_cost_climbing_stairs_dp.js26function minCostClimbingStairsDPComp(cost) {
LOW…r_dynamic_programming/climbing_stairs_constraint_dp.js8function climbingStairsConstraintDP(n) {
LOWzh-hant/codes/ruby/chapter_searching/hashing_search.rb17def hashing_search_linkedlist(hmap, target)
LOW…odes/ruby/chapter_searching/binary_search_insertion.rb8def binary_search_insertion_simple(nums, target)
LOW…ruby/chapter_dynamic_programming/unbounded_knapsack.rb28def unbounded_knapsack_dp_comp(wgt, val, cap)
LOW…apter_dynamic_programming/climbing_stairs_backtrack.rb23def climbing_stairs_backtrack(n)
LOW…ter_dynamic_programming/min_cost_climbing_stairs_dp.rb8def min_cost_climbing_stairs_dp(cost)
LOW…ter_dynamic_programming/min_cost_climbing_stairs_dp.rb21def min_cost_climbing_stairs_dp_comp(cost)
LOW…r_dynamic_programming/climbing_stairs_constraint_dp.rb8def climbing_stairs_constraint_dp(n)
LOW…es/python/chapter_searching/binary_search_insertion.py8def binary_search_insertion_simple(nums: list[int], target: int) -> int:
LOWja/codes/python/chapter_searching/hashing_search.py21def hashing_search_linkedlist(
LOW…r_dynamic_programming/climbing_stairs_constraint_dp.py8def climbing_stairs_constraint_dp(n: int) -> int:
LOW…ter_dynamic_programming/min_cost_climbing_stairs_dp.py8def min_cost_climbing_stairs_dp(cost: list[int]) -> int:
LOW…ter_dynamic_programming/min_cost_climbing_stairs_dp.py23def min_cost_climbing_stairs_dp_comp(cost: list[int]) -> int:
LOW…apter_dynamic_programming/climbing_stairs_backtrack.py23def climbing_stairs_backtrack(n: int) -> int:
LOW…thon/chapter_dynamic_programming/unbounded_knapsack.py25def unbounded_knapsack_dp_comp(wgt: list[int], val: list[int], cap: int) -> int:
LOW…ypescript/chapter_searching/binary_search_insertion.ts8function binarySearchInsertionSimple(
LOW…ter_dynamic_programming/min_cost_climbing_stairs_dp.ts26function minCostClimbingStairsDPComp(cost: Array<number>): number {
LOW…r_dynamic_programming/climbing_stairs_constraint_dp.ts8function climbingStairsConstraintDP(n: number): number {
LOW…avascript/chapter_searching/binary_search_insertion.js8function binarySearchInsertionSimple(nums, target) {
LOW…ter_dynamic_programming/min_cost_climbing_stairs_dp.js26function minCostClimbingStairsDPComp(cost) {
LOW…r_dynamic_programming/climbing_stairs_constraint_dp.js8function climbingStairsConstraintDP(n) {
LOWja/codes/ruby/chapter_searching/hashing_search.rb17def hashing_search_linkedlist(hmap, target)
LOW…odes/ruby/chapter_searching/binary_search_insertion.rb8def binary_search_insertion_simple(nums, target)
LOW…ruby/chapter_dynamic_programming/unbounded_knapsack.rb28def unbounded_knapsack_dp_comp(wgt, val, cap)
LOW…apter_dynamic_programming/climbing_stairs_backtrack.rb23def climbing_stairs_backtrack(n)
LOW…ter_dynamic_programming/min_cost_climbing_stairs_dp.rb8def min_cost_climbing_stairs_dp(cost)
LOW…ter_dynamic_programming/min_cost_climbing_stairs_dp.rb21def min_cost_climbing_stairs_dp_comp(cost)
LOW…r_dynamic_programming/climbing_stairs_constraint_dp.rb8def climbing_stairs_constraint_dp(n)
LOW…es/python/chapter_searching/binary_search_insertion.py8def binary_search_insertion_simple(nums: list[int], target: int) -> int:
LOWru/codes/python/chapter_searching/hashing_search.py21def hashing_search_linkedlist(
LOW…r_dynamic_programming/climbing_stairs_constraint_dp.py8def climbing_stairs_constraint_dp(n: int) -> int:
LOW…ter_dynamic_programming/min_cost_climbing_stairs_dp.py8def min_cost_climbing_stairs_dp(cost: list[int]) -> int:
LOW…ter_dynamic_programming/min_cost_climbing_stairs_dp.py23def min_cost_climbing_stairs_dp_comp(cost: list[int]) -> int:
LOW…apter_dynamic_programming/climbing_stairs_backtrack.py23def climbing_stairs_backtrack(n: int) -> int:
LOW…thon/chapter_dynamic_programming/unbounded_knapsack.py25def unbounded_knapsack_dp_comp(wgt: list[int], val: list[int], cap: int) -> int:
LOW…ypescript/chapter_searching/binary_search_insertion.ts8function binarySearchInsertionSimple(
LOW…ter_dynamic_programming/min_cost_climbing_stairs_dp.ts26function minCostClimbingStairsDPComp(cost: Array<number>): number {
LOW…r_dynamic_programming/climbing_stairs_constraint_dp.ts8function climbingStairsConstraintDP(n: number): number {
LOW…avascript/chapter_searching/binary_search_insertion.js8function binarySearchInsertionSimple(nums, target) {
LOW…ter_dynamic_programming/min_cost_climbing_stairs_dp.js26function minCostClimbingStairsDPComp(cost) {
LOW…r_dynamic_programming/climbing_stairs_constraint_dp.js8function climbingStairsConstraintDP(n) {
LOWru/codes/ruby/chapter_searching/hashing_search.rb17def hashing_search_linkedlist(hmap, target)
LOW…odes/ruby/chapter_searching/binary_search_insertion.rb8def binary_search_insertion_simple(nums, target)
LOW…ruby/chapter_dynamic_programming/unbounded_knapsack.rb28def unbounded_knapsack_dp_comp(wgt, val, cap)
LOW…apter_dynamic_programming/climbing_stairs_backtrack.rb23def climbing_stairs_backtrack(n)
LOW…ter_dynamic_programming/min_cost_climbing_stairs_dp.rb8def min_cost_climbing_stairs_dp(cost)
LOW…ter_dynamic_programming/min_cost_climbing_stairs_dp.rb21def min_cost_climbing_stairs_dp_comp(cost)
LOW…r_dynamic_programming/climbing_stairs_constraint_dp.rb8def climbing_stairs_constraint_dp(n)
40 more matches not shown…
Over-Commented Block91 hits · 91 pts
SeverityFileLineSnippet
LOWzh-hant/codes/go/pkg/tree_node.go21 Right: nil,
LOWzh-hant/codes/python/modules/tree_node.py21 # 二元樹的陣列表示:
LOWzh-hant/codes/rust/include/tree_node.rs41
LOWzh-hant/codes/rust/src/include/tree_node.rs41
LOWzh-hant/codes/java/utils/TreeNode.java21 }
LOWzh-hant/codes/kotlin/utils/TreeNode.kt21 // [1, 2, 3, 4, None, 6, 7, 8, 9, None, None, 12, None, None, 15]
LOWzh-hant/codes/cpp/utils/tree_node.hpp21 TreeNode() = default;
LOWzh-hant/codes/cpp/utils/common.hpp1/**
LOWzh-hant/codes/cpp/utils/common.hpp21#include <vector>
LOWzh-hant/codes/swift/utils/TreeNode.swift21 // https://www.hello-algo.com/chapter_tree/array_representation_of_tree/
LOWzh-hant/codes/c/utils/tree_node.h41// [1, 2, 3, 4, None, 6, 7, 8, 9, None, None, 12, None, None, 15]
LOWzh-hant/codes/c/utils/uthash.h21SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
LOWzh-hant/codes/c/utils/uthash.h41#endif
LOWzh-hant/codes/c/utils/uthash.h61#endif
LOWzh-hant/codes/c/utils/uthash.h81#define uthash_free(ptr,sz) free(ptr) /* free fcn */
LOWzh-hant/codes/c/utils/uthash.h101#ifndef uthash_expand_fyi
LOWzh-hant/codes/c/utils/uthash.h121
LOWzh-hant/codes/c/utils/common.h1/**
LOWzh-hant/codes/c/utils/common.h21#include "vertex.h"
LOWja/codes/go/pkg/tree_node.go21 Right: nil,
LOWja/codes/python/modules/tree_node.py21 # 二分木の配列表現:
LOWja/codes/rust/src/include/tree_node.rs41
LOWja/codes/java/utils/TreeNode.java21 }
LOWja/codes/kotlin/utils/TreeNode.kt21 // [1, 2, 3, 4, None, 6, 7, 8, 9, None, None, 12, None, None, 15]
LOWja/codes/cpp/utils/tree_node.hpp21 TreeNode() = default;
LOWja/codes/cpp/utils/common.hpp1/**
LOWja/codes/cpp/utils/common.hpp21#include <vector>
LOWja/codes/swift/utils/TreeNode.swift21 // https://www.hello-algo.com/chapter_tree/array_representation_of_tree/
LOWja/codes/c/utils/tree_node.h41// [1, 2, 3, 4, None, 6, 7, 8, 9, None, None, 12, None, None, 15]
LOWja/codes/c/utils/uthash.h21SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
LOWja/codes/c/utils/uthash.h41#endif
LOWja/codes/c/utils/uthash.h61#endif
LOWja/codes/c/utils/uthash.h81#define uthash_free(ptr,sz) free(ptr) /* free fcn */
LOWja/codes/c/utils/uthash.h101#ifndef uthash_expand_fyi
LOWja/codes/c/utils/uthash.h121
LOWja/codes/c/utils/common.h1/**
LOWja/codes/c/utils/common.h21#include "vertex.h"
LOWru/codes/go/pkg/tree_node.go21 Right: nil,
LOWru/codes/python/modules/tree_node.py21 # Массивное представление двоичного дерева:
LOWru/codes/rust/src/include/tree_node.rs41
LOWru/codes/java/utils/TreeNode.java21 }
LOWru/codes/kotlin/utils/TreeNode.kt21 // [1, 2, 3, 4, None, 6, 7, 8, 9, None, None, 12, None, None, 15]
LOWru/codes/cpp/utils/tree_node.hpp21 TreeNode() = default;
LOWru/codes/cpp/utils/common.hpp1/**
LOWru/codes/cpp/utils/common.hpp21#include <vector>
LOWru/codes/swift/utils/TreeNode.swift21 // https://www.hello-algo.com/chapter_tree/array_representation_of_tree/
LOWru/codes/c/utils/tree_node.h41// [1, 2, 3, 4, None, 6, 7, 8, 9, None, None, 12, None, None, 15]
LOWru/codes/c/utils/uthash.h21SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
LOWru/codes/c/utils/uthash.h41#endif
LOWru/codes/c/utils/uthash.h61#endif
LOWru/codes/c/utils/uthash.h81#define uthash_free(ptr,sz) free(ptr) /* free fcn */
LOWru/codes/c/utils/uthash.h101#ifndef uthash_expand_fyi
LOWru/codes/c/utils/uthash.h121
LOWru/codes/c/utils/common.h1/**
LOWru/codes/c/utils/common.h21#include "vertex.h"
LOWcodes/go/pkg/tree_node.go21 Right: nil,
LOWcodes/python/modules/tree_node.py21 # 二叉树的数组表示:
LOWcodes/rust/src/include/tree_node.rs41
LOWcodes/java/utils/TreeNode.java21 }
LOWcodes/kotlin/utils/TreeNode.kt21 // [1, 2, 3, 4, None, 6, 7, 8, 9, None, None, 12, None, None, 15]
31 more matches not shown…
Unused Imports90 hits · 90 pts
SeverityFileLineSnippet
LOWzh-hant/codes/python/chapter_tree/array_binary_tree.py11
LOWzh-hant/codes/python/modules/tree_node.py7
LOWzh-hant/codes/python/modules/__init__.py3
LOWzh-hant/codes/python/modules/__init__.py6
LOWzh-hant/codes/python/modules/__init__.py6
LOWzh-hant/codes/python/modules/__init__.py6
LOWzh-hant/codes/python/modules/__init__.py11
LOWzh-hant/codes/python/modules/__init__.py11
LOWzh-hant/codes/python/modules/__init__.py11
LOWzh-hant/codes/python/modules/__init__.py12
LOWzh-hant/codes/python/modules/__init__.py12
LOWzh-hant/codes/python/modules/__init__.py12
LOWzh-hant/codes/python/modules/__init__.py13
LOWzh-hant/codes/python/modules/__init__.py13
LOWzh-hant/codes/python/modules/__init__.py13
LOWzh-hant/codes/python/modules/__init__.py13
LOWzh-hant/codes/python/modules/__init__.py13
LOW…t/codes/python/chapter_graph/graph_adjacency_matrix.py11
LOWja/codes/python/chapter_tree/array_binary_tree.py11
LOWja/codes/python/modules/tree_node.py7
LOWja/codes/python/modules/__init__.py3
LOWja/codes/python/modules/__init__.py6
LOWja/codes/python/modules/__init__.py6
LOWja/codes/python/modules/__init__.py6
LOWja/codes/python/modules/__init__.py11
LOWja/codes/python/modules/__init__.py11
LOWja/codes/python/modules/__init__.py11
LOWja/codes/python/modules/__init__.py12
LOWja/codes/python/modules/__init__.py12
LOWja/codes/python/modules/__init__.py12
LOWja/codes/python/modules/__init__.py13
LOWja/codes/python/modules/__init__.py13
LOWja/codes/python/modules/__init__.py13
LOWja/codes/python/modules/__init__.py13
LOWja/codes/python/modules/__init__.py13
LOWja/codes/python/chapter_graph/graph_adjacency_matrix.py11
LOWru/codes/python/chapter_tree/array_binary_tree.py11
LOWru/codes/python/modules/tree_node.py7
LOWru/codes/python/modules/__init__.py3
LOWru/codes/python/modules/__init__.py6
LOWru/codes/python/modules/__init__.py6
LOWru/codes/python/modules/__init__.py6
LOWru/codes/python/modules/__init__.py11
LOWru/codes/python/modules/__init__.py11
LOWru/codes/python/modules/__init__.py11
LOWru/codes/python/modules/__init__.py12
LOWru/codes/python/modules/__init__.py12
LOWru/codes/python/modules/__init__.py12
LOWru/codes/python/modules/__init__.py13
LOWru/codes/python/modules/__init__.py13
LOWru/codes/python/modules/__init__.py13
LOWru/codes/python/modules/__init__.py13
LOWru/codes/python/modules/__init__.py13
LOWru/codes/python/chapter_graph/graph_adjacency_matrix.py11
LOWcodes/python/chapter_tree/array_binary_tree.py11
LOWcodes/python/modules/tree_node.py7
LOWcodes/python/modules/__init__.py3
LOWcodes/python/modules/__init__.py6
LOWcodes/python/modules/__init__.py6
LOWcodes/python/modules/__init__.py6
30 more matches not shown…
Redundant / Tautological Comments37 hits · 54 pts
SeverityFileLineSnippet
LOWen/codes/python/chapter_sorting/insertion_sort.py18 nums[j + 1] = base # Assign base to the correct position
LOWen/codes/python/chapter_heap/my_heap.py135 # Check if heap is empty
LOWen/codes/python/chapter_heap/heap.py62 # Check if heap is empty
LOWen/codes/python/chapter_array_and_linkedlist/array.py37 # Assign num to the element at index index
LOWen/codes/python/chapter_stack_and_queue/array_stack.py70 # Check if it is empty
LOWen/codes/python/chapter_stack_and_queue/queue.py37 # Check if the queue is empty
LOWen/codes/python/chapter_stack_and_queue/deque.py40 # Check if the double-ended queue is empty
LOW…des/python/chapter_stack_and_queue/linkedlist_stack.py87 # Check if it is empty
LOWen/codes/python/chapter_stack_and_queue/array_deque.py127 # Check if the double-ended queue is empty
LOWen/codes/python/chapter_stack_and_queue/stack.py34 # Check if it is empty
LOWen/codes/python/chapter_stack_and_queue/array_queue.py90 # Check if the queue is empty
LOW…des/python/chapter_stack_and_queue/linkedlist_deque.py149 # Check if the double-ended queue is empty
LOW…des/python/chapter_stack_and_queue/linkedlist_queue.py95 # Check if the queue is empty
LOW…hapter_backtracking/preorder_traversal_iii_template.py43 # Check if it is a solution
LOWen/codes/ruby/chapter_sorting/insertion_sort.rb19 nums[j + 1] = base # Assign base to the correct position
LOWen/codes/ruby/chapter_heap/my_heap.rb48 ### Check if heap is empty ###
LOWen/codes/ruby/chapter_heap/my_heap.rb125 # Check if heap is empty
LOWen/codes/ruby/chapter_heap/my_heap.rb144 # Check if heap is empty
LOWen/codes/ruby/chapter_array_and_linkedlist/array.rb40 # Assign num to the element at index index
LOW…codes/ruby/chapter_stack_and_queue/linkedlist_queue.rb21 ### Check if queue is empty ###
LOW…codes/ruby/chapter_stack_and_queue/linkedlist_queue.rb98 # Check if the queue is empty
LOW…codes/ruby/chapter_stack_and_queue/linkedlist_deque.rb31 ### Check if deque is empty ###
LOW…codes/ruby/chapter_stack_and_queue/linkedlist_deque.rb165 # Check if the double-ended queue is empty
LOWen/codes/ruby/chapter_stack_and_queue/array_queue.rb24 ### Check if queue is empty ###
LOWen/codes/ruby/chapter_stack_and_queue/array_queue.rb97 # Check if the queue is empty
LOWen/codes/ruby/chapter_stack_and_queue/stack.rb34 # Check if empty
LOWen/codes/ruby/chapter_stack_and_queue/array_deque.rb24 ### Check if deque is empty ###
LOWen/codes/ruby/chapter_stack_and_queue/array_deque.rb142 # Check if the double-ended queue is empty
LOW…codes/ruby/chapter_stack_and_queue/linkedlist_stack.rb18 ### Check if stack is empty ###
LOW…codes/ruby/chapter_stack_and_queue/linkedlist_stack.rb84 # Check if empty
LOWen/codes/ruby/chapter_stack_and_queue/deque.rb39 # Check if the double-ended queue is empty
LOWen/codes/ruby/chapter_stack_and_queue/queue.rb35 # Check if the queue is empty
LOWen/codes/ruby/chapter_stack_and_queue/array_stack.rb19 ### Check if stack is empty ###
LOWen/codes/ruby/chapter_stack_and_queue/array_stack.rb75 # Check if empty
LOW…hapter_backtracking/preorder_traversal_iii_template.rb10### Check if current state is solution ###
LOW…hapter_backtracking/preorder_traversal_iii_template.rb20### Check if choice is valid in current state ###
LOW…hapter_backtracking/preorder_traversal_iii_template.rb37 # Check if it is a solution
Excessive Try-Catch Wrapping15 hits · 30 pts
SeverityFileLineSnippet
MEDIUMzh-hant/codes/dart/build.dart16 print('Error: $e');
MEDIUMzh-hant/codes/dart/build.dart28 print('Error: $e');
MEDIUMzh-hant/codes/dart/build.dart38 print('Error: $errorCount');
MEDIUMja/codes/dart/build.dart16 print('Error: $e');
MEDIUMja/codes/dart/build.dart28 print('Error: $e');
MEDIUMja/codes/dart/build.dart38 print('Error: $errorCount');
MEDIUMru/codes/dart/build.dart16 print('Error: $e');
MEDIUMru/codes/dart/build.dart28 print('Error: $e');
MEDIUMru/codes/dart/build.dart38 print('Error: $errorCount');
MEDIUMcodes/dart/build.dart16 print('Error: $e');
MEDIUMcodes/dart/build.dart28 print('Error: $e');
MEDIUMcodes/dart/build.dart38 print('Error: $errorCount');
MEDIUMen/codes/dart/build.dart16 print('Error: $e');
MEDIUMen/codes/dart/build.dart28 print('Error: $e');
MEDIUMen/codes/dart/build.dart38 print('Error: $errorCount');
Self-Referential Comments6 hits · 14 pts
SeverityFileLineSnippet
MEDIUMen/codes/python/chapter_sorting/merge_sort.py11 # Create a temporary array tmp to store the merged results
MEDIUM…s/python/chapter_computational_complexity/iteration.py20 i = 1 # Initialize condition variable
MEDIUM…s/python/chapter_computational_complexity/iteration.py31 i = 1 # Initialize condition variable
MEDIUMen/codes/python/chapter_array_and_linkedlist/my_list.py76 # Create a new array with length _extend_ratio times the original array, and copy the original array to the new
MEDIUM…des/ruby/chapter_computational_complexity/iteration.rb22 i = 1 # Initialize condition variable
MEDIUM…des/ruby/chapter_computational_complexity/iteration.rb36 i = 1 # Initialize condition variable
Deep Nesting5 hits · 5 pts
SeverityFileLineSnippet
LOWzh-hant/codes/python/chapter_tree/avl_tree.py121
LOWja/codes/python/chapter_tree/avl_tree.py121
LOWru/codes/python/chapter_tree/avl_tree.py121
LOWcodes/python/chapter_tree/avl_tree.py121
LOWen/codes/python/chapter_tree/avl_tree.py121