Repository Analysis

doocs/leetcode

🔥LeetCode solutions in any programming language | 多种编程语言实现 LeetCode、《剑指 Offer(第 2 版)》、《程序员面试金典(第 6 版)》题解

1.2 Likely human-written View on GitHub
1.2
Adjusted Score
1.2
Raw Score
100%
Time Factor
2026-05-29
Last Push
36,058
Stars
Java
Language
2,817,692
Lines of Code
32975
Files
1724
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 379MEDIUM 10LOW 1335

Pattern Findings

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

Cross-File Repetition360 hits · 1800 pts
SeverityFileLineSnippet
HIGH…2.Search in a Sorted Array of Unknown Size/Solution.py0# this is arrayreader's api interface. # you should not implement it, or speculate about its implementation #
HIGH…702.Search in a Sorted Array of Unknown Size/README.md0# this is arrayreader's api interface. # you should not implement it, or speculate about its implementation #
HIGH….Search in a Sorted Array of Unknown Size/README_EN.md0# this is arrayreader's api interface. # you should not implement it, or speculate about its implementation #
HIGH…9/1533.Find the Index of the Large Integer/Solution.py0# this is arrayreader's api interface. # you should not implement it, or speculate about its implementation #
HIGH…599/1533.Find the Index of the Large Integer/README.md0# this is arrayreader's api interface. # you should not implement it, or speculate about its implementation #
HIGH…/1533.Find the Index of the Large Integer/README_EN.md0# this is arrayreader's api interface. # you should not implement it, or speculate about its implementation #
HIGHsolution/0700-0799/0759.Employee Free Time/Solution.py0# definition for an interval. class interval: def __init__(self, start: int = none, end: int = none): self.start = start
HIGHsolution/0700-0799/0759.Employee Free Time/README.md0# definition for an interval. class interval: def __init__(self, start: int = none, end: int = none): self.start = start
HIGHsolution/0700-0799/0759.Employee Free Time/README_EN.md0# definition for an interval. class interval: def __init__(self, start: int = none, end: int = none): self.start = start
HIGH….Insert into a Sorted Circular Linked List/Solution.py0# definition for a node. class node: def __init__(self, val=none, next=none): self.val = val self.next = next
HIGH…08.Insert into a Sorted Circular Linked List/README.md0# definition for a node. class node: def __init__(self, val=none, next=none): self.val = val self.next = next
HIGH…Insert into a Sorted Circular Linked List/README_EN.md0# definition for a node. class node: def __init__(self, val=none, next=none): self.val = val self.next = next
HIGHlcof2/剑指 Offer II 029. 排序的循环链表/Solution.py0# definition for a node. class node: def __init__(self, val=none, next=none): self.val = val self.next = next
HIGHlcof2/剑指 Offer II 029. 排序的循环链表/README.md0# definition for a node. class node: def __init__(self, val=none, next=none): self.val = val self.next = next
HIGH…0-1799/1778.Shortest Path in a Hidden Grid/Solution.py0# this is gridmaster's api interface. # you should not implement it, or speculate about its implementation #
HIGH…700-1799/1778.Shortest Path in a Hidden Grid/README.md0# this is gridmaster's api interface. # you should not implement it, or speculate about its implementation #
HIGH…-1799/1778.Shortest Path in a Hidden Grid/README_EN.md0# this is gridmaster's api interface. # you should not implement it, or speculate about its implementation #
HIGH…99/1810.Minimum Path Cost in a Hidden Grid/Solution.py0# this is gridmaster's api interface. # you should not implement it, or speculate about its implementation #
HIGH…1899/1810.Minimum Path Cost in a Hidden Grid/README.md0# this is gridmaster's api interface. # you should not implement it, or speculate about its implementation #
HIGH…9/1810.Minimum Path Cost in a Hidden Grid/README_EN.md0# this is gridmaster's api interface. # you should not implement it, or speculate about its implementation #
HIGHsolution/0200-0299/0286.Walls and Gates/Solution.py0do not return anything, modify rooms in-place instead.
HIGHsolution/0200-0299/0286.Walls and Gates/README.md0do not return anything, modify rooms in-place instead.
HIGHsolution/0200-0299/0286.Walls and Gates/README_EN.md0do not return anything, modify rooms in-place instead.
HIGHsolution/0200-0299/0280.Wiggle Sort/Solution.py0do not return anything, modify nums in-place instead.
HIGHsolution/0200-0299/0280.Wiggle Sort/README.md0do not return anything, modify nums in-place instead.
HIGHsolution/0200-0299/0280.Wiggle Sort/README_EN.md0do not return anything, modify nums in-place instead.
HIGHsolution/0300-0399/0324.Wiggle Sort II/Solution.py0do not return anything, modify nums in-place instead.
HIGHsolution/0300-0399/0324.Wiggle Sort II/README.md0do not return anything, modify nums in-place instead.
HIGHsolution/0300-0399/0324.Wiggle Sort II/README.md0do not return anything, modify nums in-place instead.
HIGHsolution/0300-0399/0324.Wiggle Sort II/README_EN.md0do not return anything, modify nums in-place instead.
HIGHsolution/0300-0399/0324.Wiggle Sort II/README_EN.md0do not return anything, modify nums in-place instead.
HIGHsolution/0300-0399/0324.Wiggle Sort II/Solution2.py0do not return anything, modify nums in-place instead.
HIGHsolution/0200-0299/0284.Peeking Iterator/Solution.py0# initializes an iterator object to the beginning of a list. # :type nums: list[int] #
HIGHsolution/0200-0299/0284.Peeking Iterator/README.md0# initializes an iterator object to the beginning of a list. # :type nums: list[int] #
HIGHsolution/0200-0299/0284.Peeking Iterator/README_EN.md0# initializes an iterator object to the beginning of a list. # :type nums: list[int] #
HIGHsolution/0200-0299/0284.Peeking Iterator/Solution.py0# returns true if the iteration has more elements. # :rtype: bool #
HIGHsolution/0200-0299/0284.Peeking Iterator/README.md0# returns true if the iteration has more elements. # :rtype: bool #
HIGHsolution/0200-0299/0284.Peeking Iterator/README_EN.md0# returns true if the iteration has more elements. # :rtype: bool #
HIGHsolution/0200-0299/0284.Peeking Iterator/Solution.py0# returns the next element in the iteration. # :rtype: int #
HIGHsolution/0200-0299/0284.Peeking Iterator/README.md0# returns the next element in the iteration. # :rtype: int #
HIGHsolution/0200-0299/0284.Peeking Iterator/README_EN.md0# returns the next element in the iteration. # :rtype: int #
HIGHsolution/0200-0299/0284.Peeking Iterator/Solution.py0initialize your data structure here. :type iterator: iterator
HIGHsolution/0200-0299/0284.Peeking Iterator/README.md0initialize your data structure here. :type iterator: iterator
HIGHsolution/0200-0299/0284.Peeking Iterator/README_EN.md0initialize your data structure here. :type iterator: iterator
HIGHsolution/0200-0299/0284.Peeking Iterator/Solution.py0returns the next element in the iteration without advancing the iterator. :rtype: int
HIGHsolution/0200-0299/0284.Peeking Iterator/README.md0returns the next element in the iteration without advancing the iterator. :rtype: int
HIGHsolution/0200-0299/0284.Peeking Iterator/README_EN.md0returns the next element in the iteration without advancing the iterator. :rtype: int
HIGH…200-0299/0237.Delete Node in a Linked List/Solution.py0:type node: listnode :rtype: void do not return anything, modify node in-place instead.
HIGH…/0200-0299/0237.Delete Node in a Linked List/README.md0:type node: listnode :rtype: void do not return anything, modify node in-place instead.
HIGH…00-0299/0237.Delete Node in a Linked List/README_EN.md0:type node: listnode :rtype: void do not return anything, modify node in-place instead.
HIGH…0297.Serialize and Deserialize Binary Tree/Solution.py0encodes a tree to a single string. :type root: treenode :rtype: str
HIGH…9/0297.Serialize and Deserialize Binary Tree/README.md0encodes a tree to a single string. :type root: treenode :rtype: str
HIGH…297.Serialize and Deserialize Binary Tree/README_EN.md0encodes a tree to a single string. :type root: treenode :rtype: str
HIGHlcof/面试题37. 序列化二叉树/Solution.py0encodes a tree to a single string. :type root: treenode :rtype: str
HIGHlcof/面试题37. 序列化二叉树/README.md0encodes a tree to a single string. :type root: treenode :rtype: str
HIGHlcof2/剑指 Offer II 048. 序列化与反序列化二叉树/Solution.py0encodes a tree to a single string. :type root: treenode :rtype: str
HIGHlcof2/剑指 Offer II 048. 序列化与反序列化二叉树/README.md0encodes a tree to a single string. :type root: treenode :rtype: str
HIGH…0297.Serialize and Deserialize Binary Tree/Solution.py0decodes your encoded data to tree. :type data: str :rtype: treenode
HIGH…9/0297.Serialize and Deserialize Binary Tree/README.md0decodes your encoded data to tree. :type data: str :rtype: treenode
HIGH…297.Serialize and Deserialize Binary Tree/README_EN.md0decodes your encoded data to tree. :type data: str :rtype: treenode
300 more matches not shown…
Over-Commented Block497 hits · 497 pts
SeverityFileLineSnippet
LOWlcci/04.05.Legal Binary Search Tree/Solution.rs1// Definition for a binary tree node.
LOWlcci/04.05.Legal Binary Search Tree/README.md201 return dfs(root);
LOWlcci/04.05.Legal Binary Search Tree/README_EN.md241```
LOWlcci/04.12.Paths with Sum/Solution.rs1// Definition for a binary tree node.
LOWlcci/04.12.Paths with Sum/README_EN.md241```
LOWlcci/04.02.Minimum Height Tree/Solution.rs1// Definition for a binary tree node.
LOWlcci/04.02.Minimum Height Tree/README.md181// }
LOWlcci/04.02.Minimum Height Tree/README_EN.md201// pub struct TreeNode {
LOWlcci/02.02.Kth Node From End of List/Solution.rs1// Definition for singly-linked list.
LOWlcci/02.02.Kth Node From End of List/README_EN.md181// }
LOWlcci/03.05.Sort of Stacks/Solution.py21 def isEmpty(self) -> bool:
LOWlcci/16.25.LRU Cache/Solution.py61# Your LRUCache object will be instantiated and called as such:
LOWlcci/04.03.List of Depth/Solution.rs1// Definition for a binary tree node.
LOWlcci/04.03.List of Depth/Solution.rs21// pub struct ListNode {
LOWlcci/04.03.List of Depth/Solution.py1# Definition for a binary tree node.
LOWlcci/04.03.List of Depth/README.md261 ans.push(dummy.next);
LOWlcci/04.03.List of Depth/README.md281// TreeNode {
LOWlcci/04.03.List of Depth/README_EN.md61<!-- tabs:start -->
LOWlcci/04.03.List of Depth/README_EN.md281
LOWlcci/04.03.List of Depth/README_EN.md301// Definition for singly-linked list.
LOWlcci/03.06.Animal Shelter/Solution.py21
LOWlcci/04.10.Check SubTree/Solution.rs1// Definition for a binary tree node.
LOWlcci/04.10.Check SubTree/README.md241// Definition for a binary tree node.
LOWlcci/04.10.Check SubTree/README_EN.md241 }
LOWlcci/03.02.Min Stack/Solution.py21 return self.mins[-1]
LOWlcci/02.01.Remove Duplicate Node/Solution.rs1// Definition for singly-linked list.
LOWlcci/02.01.Remove Duplicate Node/README.md201// Definition for singly-linked list.
LOWlcci/02.01.Remove Duplicate Node/README_EN.md201}
LOWsolution/3500-3599/3508.Implement Router/Solution.py41# obj = Router(memoryLimit)
LOWsolution/0700-0799/0707.Design Linked List/Solution.py41# Your MyLinkedList object will be instantiated and called as such:
LOW…99/0783.Minimum Distance Between BST Nodes/Solution.rs1// Definition for a binary tree node.
LOW…0799/0783.Minimum Distance Between BST Nodes/README.md241// Definition for a binary tree node.
LOWsolution/0700-0799/0716.Max Stack/Solution.py61
LOWsolution/0700-0799/0715.Range Module/Solution.py81# obj.addRange(left,right)
LOWsolution/0700-0799/0755.Pour Water/README.md81# #
LOW…00-1799/1797.Design Authentication Manager/Solution.py21# obj.renew(tokenId,currentTime)
LOW…0-1799/1778.Shortest Path in a Hidden Grid/Solution.py1# """
LOW…700-1799/1778.Shortest Path in a Hidden Grid/README.md121<!-- tabs:start -->
LOW…-1799/1778.Shortest Path in a Hidden Grid/README_EN.md121<!-- tabs:start -->
LOWsolution/0200-0299/0226.Invert Binary Tree/Solution.rs1// Definition for a binary tree node.
LOWsolution/0200-0299/0226.Invert Binary Tree/README.md201```
LOWsolution/0200-0299/0226.Invert Binary Tree/README_EN.md201// #[derive(Debug, PartialEq, Eq)]
LOW…0200-0299/0203.Remove Linked List Elements/Solution.rs1// Definition for singly-linked list.
LOW…n/0200-0299/0203.Remove Linked List Elements/README.md181#### Rust
LOW…200-0299/0203.Remove Linked List Elements/README_EN.md181```rust
LOWsolution/0200-0299/0206.Reverse Linked List/Solution.rs1// Definition for singly-linked list.
LOWsolution/0200-0299/0206.Reverse Linked List/README.md201 }
LOW…lution/0200-0299/0206.Reverse Linked List/Solution2.rs1// Definition for singly-linked list.
LOW…lution/0200-0299/0206.Reverse Linked List/README_EN.md201```rust
LOW…lution/0200-0299/0206.Reverse Linked List/README_EN.md421 return rev(head, next);
LOWsolution/0200-0299/0251.Flatten 2D Vector/Solution.py21
LOW…36.Lowest Common Ancestor of a Binary Tree/Solution.rs1// Definition for a binary tree node.
LOW…0236.Lowest Common Ancestor of a Binary Tree/README.md221// pub val: i32,
LOW…6.Lowest Common Ancestor of a Binary Tree/README_EN.md221// pub right: Option<Rc<RefCell<TreeNode>>>,
LOWsolution/0200-0299/0284.Peeking Iterator/Solution.py1# Below is the interface for Iterator, which is already defined for you.
LOWsolution/0200-0299/0284.Peeking Iterator/Solution.py61# Your PeekingIterator object will be instantiated and called as such:
LOWsolution/0200-0299/0284.Peeking Iterator/README.md81```python
LOWsolution/0200-0299/0284.Peeking Iterator/README_EN.md81# class Iterator:
LOW…n/0200-0299/0271.Encode and Decode Strings/Solution.py21# Your Codec object will be instantiated and called as such:
LOW…n/0200-0299/0244.Shortest Word Distance II/Solution.py21# obj = WordDistance(wordsDict)
437 more matches not shown…
Deep Nesting416 hits · 416 pts
SeverityFileLineSnippet
LOWrun_format.py225
LOWrun_format.py277
LOWlcs/LCS 03. 主题空间/Solution.py2
LOWlcci/05.04.Closed Number/Solution.py2
LOWlcci/08.14.Boolean Evaluation/Solution.py2
LOWlcci/08.14.Boolean Evaluation/Solution.py4
LOWlcci/17.24.Max Submatrix/Solution.py2
LOWlcci/10.03.Search Rotate Array/Solution.py2
LOWlcci/17.23.Max Black Square/Solution.py2
LOWsolution/util.py271
LOWsolution/main.py394
LOW…4.Split the Array to Make Coprime Products/Solution.py2
LOW…00-2599/2585.Number of Ways to Earn Points/Solution.py2
LOW…ution/2500-2599/2512.Reward Top K Students/Solution.py2
LOW…Distinct Prime Factors of Product of Array/Solution.py2
LOW…on/2500-2599/2573.Find the String with LCP/Solution.py2
LOW…577.Minimum Time to Visit a Cell In a Grid/Solution.py2
LOW…1.Make Number of Distinct Characters Equal/Solution.py2
LOW…Maximum Number of Points From Grid Queries/Solution.py2
LOW…/3568.Minimum Moves to Clean the Classroom/Solution.py2
LOW… Profit from Trading Stocks with Discounts/Solution.py2
LOW… Profit from Trading Stocks with Discounts/Solution.py15
LOW…500-3599/3552.Grid Teleportation Traversal/Solution.py2
LOW…m Absolute Difference in Sliding Submatrix/Solution.py2
LOW…3500-3599/3574.Maximize Subarray GCD Score/Solution.py2
LOW…3500-3599/3548.Equal Sum Grid Partition II/Solution.py2
LOW…3500-3599/3548.Equal Sum Grid Partition II/Solution.py3
LOW…/3500-3599/3565.Sequential Grid Path Cover/Solution.py2
LOWsolution/0700-0799/0723.Candy Crush/Solution.py2
LOWsolution/0700-0799/0773.Sliding Puzzle/Solution.py2
LOWsolution/0700-0799/0773.Sliding Puzzle/Solution2.py2
LOWsolution/0700-0799/0735.Asteroid Collision/Solution.py2
LOWsolution/0700-0799/0752.Open the Lock/Solution.py2
LOW…0.Count Different Palindromic Subsequences/Solution.py2
LOW…0700-0799/0750.Number Of Corner Rectangles/Solution.py2
LOWsolution/0700-0799/0755.Pour Water/Solution.py2
LOW…00-0799/0742.Closest Leaf in a Binary Tree/Solution.py8
LOWsolution/0700-0799/0741.Cherry Pickup/Solution.py2
LOWsolution/0700-0799/0749.Contain Virus/Solution.py2
LOWsolution/0700-0799/0749.Contain Virus/Solution.py3
LOWsolution/0700-0799/0722.Remove Comments/Solution.py2
LOW…1799/1796.Second Largest Digit in a String/Solution.py2
LOWsolution/1700-1799/1776.Car Fleet II/Solution.py2
LOW…lution/1700-1799/1774.Closest Dessert Cost/Solution.py2
LOWsolution/1700-1799/1728.Cat and Mouse II/Solution.py2
LOWsolution/1700-1799/1728.Cat and Mouse II/Solution.py33
LOW…799/1793.Maximum Score of a Good Subarray/Solution2.py2
LOW…f Equal Substrings With Minimum Difference/Solution.py2
LOW…0-1799/1778.Shortest Path in a Hidden Grid/Solution.py18
LOW…/1719.Number Of Ways To Reconstruct A Tree/Solution.py2
LOW…717.Maximum Score From Removing Substrings/Solution.py2
LOW…n/1700-1799/1730.Shortest Path to Get Food/Solution.py2
LOW…imum Degree of a Connected Trio in a Graph/Solution.py6
LOW…799/1799.Maximize Score After N Operations/Solution.py2
LOW…lution/1700-1799/1765.Map of Highest Peak/Solution2.py2
LOW…ximize Palindrome Length From Subsequences/Solution.py2
LOWsolution/0200-0299/0269.Alien Dictionary/Solution.py2
LOW…/0200-0299/0245.Shortest Word Distance III/Solution.py2
LOWsolution/0200-0299/0286.Walls and Gates/Solution.py2
LOW…299/0241.Different Ways to Add Parentheses/Solution.py2
356 more matches not shown…
Hyper-Verbose Identifiers400 hits · 400 pts
SeverityFileLineSnippet
LOWrun_format.py359def format_rust_files_windows():
LOWsolution/util.py271def generate_category_summary(result, category=""):
LOWsolution/main.py446def format_rust_files_windows():
LOW…500-3599/3586.Find COVID Recovery Patients/Solution.py4def find_covid_recovery_patients(
LOW…/3500-3599/3586.Find COVID Recovery Patients/README.md207def find_covid_recovery_patients(
LOW…00-3599/3586.Find COVID Recovery Patients/README_EN.md206def find_covid_recovery_patients(
LOW…99/3554.Find Category Recommendation Pairs/Solution.py4def find_category_recommendation_pairs(
LOW…3599/3554.Find Category Recommendation Pairs/README.md217def find_category_recommendation_pairs(
LOW…9/3554.Find Category Recommendation Pairs/README_EN.md216def find_category_recommendation_pairs(
LOW…3580.Find Consistently Improving Employees/Solution.py4def find_consistently_improving_employees(
LOW…9/3580.Find Consistently Improving Employees/README.md210def find_consistently_improving_employees(
LOW…580.Find Consistently Improving Employees/README_EN.md209def find_consistently_improving_employees(
LOW…9/3570.Find Books with No Available Copies/Solution.py4def find_books_with_no_available_copies(
LOW…599/3570.Find Books with No Available Copies/README.md191def find_books_with_no_available_copies(
LOW…/3570.Find Books with No Available Copies/README_EN.md190def find_books_with_no_available_copies(
LOW…/0700-0799/0713.Subarray Product Less Than K/README.md144function numSubarrayProductLessThanK(nums: number[], k: number): number {
LOW…00-0799/0713.Subarray Product Less Than K/README_EN.md144function numSubarrayProductLessThanK(nums: number[], k: number): number {
LOW…700-0799/0713.Subarray Product Less Than K/Solution.ts1function numSubarrayProductLessThanK(nums: number[], k: number): number {
LOWsolution/0200-0299/0293.Flip Game/README.md140function generatePossibleNextMoves(currentState: string): string[] {
LOWsolution/0200-0299/0293.Flip Game/README_EN.md138function generatePossibleNextMoves(currentState: string): string[] {
LOWsolution/0200-0299/0293.Flip Game/Solution.ts1function generatePossibleNextMoves(currentState: string): string[] {
LOW…lution/0200-0299/0220.Contains Duplicate III/README.md170function containsNearbyAlmostDuplicate(
LOW…ion/0200-0299/0220.Contains Duplicate III/README_EN.md168function containsNearbyAlmostDuplicate(
LOW…tion/0200-0299/0220.Contains Duplicate III/Solution.ts1function containsNearbyAlmostDuplicate(
LOW…1999/1987.Number of Unique Good Subsequences/README.md178function numberOfUniqueGoodSubsequences(binary: string): number {
LOW…9/1987.Number of Unique Good Subsequences/README_EN.md179function numberOfUniqueGoodSubsequences(binary: string): number {
LOW…99/1987.Number of Unique Good Subsequences/Solution.ts1function numberOfUniqueGoodSubsequences(binary: string): number {
LOW…ngest Valid Obstacle Course at Each Position/README.md305function longestObstacleCourseAtEachPosition(obstacles: number[]): number[] {
LOW…st Valid Obstacle Course at Each Position/README_EN.md303function longestObstacleCourseAtEachPosition(obstacles: number[]): number[] {
LOW…est Valid Obstacle Course at Each Position/Solution.ts27function longestObstacleCourseAtEachPosition(obstacles: number[]): number[] {
LOW…930.Unique Length-3 Palindromic Subsequences/README.md174function countPalindromicSubsequence(s: string): number {
LOW….Unique Length-3 Palindromic Subsequences/README_EN.md172function countPalindromicSubsequence(s: string): number {
LOW…0.Unique Length-3 Palindromic Subsequences/Solution.ts1function countPalindromicSubsequence(s: string): number {
LOW…/1900-1999/1980.Find Unique Binary String/Solution2.ts1function findDifferentBinaryString(nums: string[]): string {
LOW…ion/1900-1999/1980.Find Unique Binary String/README.md157function findDifferentBinaryString(nums: string[]): string {
LOW…ion/1900-1999/1980.Find Unique Binary String/README.md286function findDifferentBinaryString(nums: string[]): string {
LOW…/1900-1999/1980.Find Unique Binary String/README_EN.md156function findDifferentBinaryString(nums: string[]): string {
LOW…/1900-1999/1980.Find Unique Binary String/README_EN.md285function findDifferentBinaryString(nums: string[]): string {
LOW…n/1900-1999/1980.Find Unique Binary String/Solution.ts1function findDifferentBinaryString(nums: string[]): string {
LOW…alue of Variable After Performing Operations/README.md151function finalValueAfterOperations(operations: string[]): number {
LOW…e of Variable After Performing Operations/README_EN.md149function finalValueAfterOperations(operations: string[]): number {
LOW…ue of Variable After Performing Operations/Solution.ts1function finalValueAfterOperations(operations: string[]): number {
LOW…imum Number of Nodes Between Critical Points/README.md251function nodesBetweenCriticalPoints(head: ListNode | null): number[] {
LOW…m Number of Nodes Between Critical Points/README_EN.md233function nodesBetweenCriticalPoints(head: ListNode | null): number[] {
LOW…um Number of Nodes Between Critical Points/Solution.ts13function nodesBetweenCriticalPoints(head: ListNode | null): number[] {
LOW…31.Count Subarrays With More Ones Than Zeros/README.md295function subarraysWithMoreZerosThanOnes(nums: number[]): number {
LOW…Count Subarrays With More Ones Than Zeros/README_EN.md296function subarraysWithMoreZerosThanOnes(nums: number[]): number {
LOW….Count Subarrays With More Ones Than Zeros/Solution.ts25function subarraysWithMoreZerosThanOnes(nums: number[]): number {
LOW…allest Missing Genetic Value in Each Subtree/README.md300function smallestMissingValueSubtree(parents: number[], nums: number[]): number[] {
LOW…est Missing Genetic Value in Each Subtree/README_EN.md297function smallestMissingValueSubtree(parents: number[], nums: number[]): number[] {
LOW…lest Missing Genetic Value in Each Subtree/Solution.ts1function smallestMissingValueSubtree(parents: number[], nums: number[]): number[] {
LOW…0-2099/2036.Maximum Alternating Subarray Sum/README.md148function maximumAlternatingSubarraySum(nums: number[]): number {
LOW…099/2036.Maximum Alternating Subarray Sum/README_EN.md150function maximumAlternatingSubarraySum(nums: number[]): number {
LOW…2099/2036.Maximum Alternating Subarray Sum/Solution.ts1function maximumAlternatingSubarraySum(nums: number[]): number {
LOW…99/2014.Longest Subsequence Repeated k Times/README.md283function longestSubsequenceRepeatedK(s: string, k: number): string {
LOW…2014.Longest Subsequence Repeated k Times/README_EN.md279function longestSubsequenceRepeatedK(s: string, k: number): string {
LOW…/2014.Longest Subsequence Repeated k Times/Solution.ts1function longestSubsequenceRepeatedK(s: string, k: number): string {
LOW…00-3099/3061.Calculate Trapping Rain Water/Solution.py4def calculate_trapped_rain_water(heights: pd.DataFrame) -> pd.DataFrame:
LOW…3000-3099/3061.Calculate Trapping Rain Water/README.md107def calculate_trapped_rain_water(heights: pd.DataFrame) -> pd.DataFrame:
LOW…0-3099/3061.Calculate Trapping Rain Water/README_EN.md106def calculate_trapped_rain_water(heights: pd.DataFrame) -> pd.DataFrame:
340 more matches not shown…
Cross-Language Confusion19 hits · 132 pts
SeverityFileLineSnippet
HIGHlcci/03.04.Implement Queue using Stacks/Solution.py28# obj.push(x)
HIGHlcci/03.05.Sort of Stacks/Solution.py27# obj.push(val)
HIGHlcci/03.03.Stack of Plates/Solution.py27# obj.push(val)
HIGHlcci/03.01.Three in One/Solution.py29# obj.push(stackNum,value)
HIGHlcci/03.02.Min Stack/Solution.py26# obj.push(val)
HIGHsolution/0700-0799/0716.Max Stack/Solution.py64# obj.push(x)
HIGH…200-0299/0232.Implement Queue using Stacks/Solution.py28# obj.push(x)
HIGH…200-0299/0225.Implement Stack using Queues/Solution.py24# obj.push(x)
HIGHsolution/2100-2199/2166.Design Bitset/Solution.py44# param_7 = obj.toString()
HIGH…ion/0800-0899/0895.Maximum Frequency Stack/Solution.py20# obj.push(val)
HIGH…on/0800-0899/0895.Maximum Frequency Stack/Solution2.py22# obj.push(val)
HIGH…81.Design a Stack With Increment Operation/Solution.py30# obj.push(x)
HIGH…tion/1000-1099/1095.Find in Mountain Array/Solution.py21 n = mountain_arr.length()
HIGH…9/1533.Find the Index of the Large Integer/Solution.py19 left, right = 0, reader.length() - 1
HIGH…/1538.Guess the Majority in a Hidden Array/Solution.py19 n = reader.length()
HIGHsolution/0100-0199/0155.Min Stack/Solution.py23# obj.push(val)
HIGHsolution/1100-1199/1172.Dinner Plate Stacks/Solution.py36# obj.push(val)
HIGHlcp/main.py13{"data":{"problemsetQuestionList":{"__typename":"QuestionListNode","questions":[{"__typename":"QuestionLightNode","acRat
HIGHlcof/面试题30. 包含min函数的栈/Solution.py23# obj.push(x)
Verbosity Indicators9 hits · 20 pts
SeverityFileLineSnippet
LOW…/3626.Find Stores with Inventory Imbalance/Solution.py7 # Step 1: Identify stores with at least 3 products
LOW…/3626.Find Stores with Inventory Imbalance/Solution.py11 # Step 2: Find most expensive product for each valid store
LOW…/3626.Find Stores with Inventory Imbalance/Solution.py21 # Step 3: Find cheapest product for each store
LOW…/3626.Find Stores with Inventory Imbalance/Solution.py32 # Step 4: Merge the two datasets on store_id
LOW…/3626.Find Stores with Inventory Imbalance/Solution.py37 # Step 5: Filter for cases where cheapest product has higher quantity than most expensive
LOW…/3626.Find Stores with Inventory Imbalance/Solution.py40 # Step 6: Calculate imbalance ratio (cheapest quantity / most expensive quantity)
LOW…/3626.Find Stores with Inventory Imbalance/Solution.py45 # Step 7: Merge with store information to get store names and locations
LOW…/3626.Find Stores with Inventory Imbalance/Solution.py48 # Step 8: Select and rename columns for final output
LOW…/3626.Find Stores with Inventory Imbalance/Solution.py65 # Step 9: Sort by imbalance ratio (descending) then store name (ascending)
Excessive Try-Catch Wrapping12 hits · 16 pts
SeverityFileLineSnippet
MEDIUMrun_format.py355 print("Error formatting Rust files on Linux:")
MEDIUMrun_format.py380 print("Error formatting Rust files on Windows:")
LOWsolution/util.py34 except Exception as e:
LOWsolution/util.py363 except Exception as e:
LOWsolution/util.py369 except Exception as e:
LOWsolution/main.py53 except Exception as e:
LOWsolution/main.py108 except Exception as e:
LOWsolution/main.py163 except Exception as e:
LOWsolution/main.py235 except Exception as e:
LOWsolution/main.py360 except Exception as e:
MEDIUMsolution/main.py442 print("Error formatting Rust files on Linux:")
MEDIUMsolution/main.py467 print("Error formatting Rust files on Windows:")
Self-Referential Comments4 hits · 12 pts
SeverityFileLineSnippet
MEDIUM…on/1300-1399/1307.Verbal Arithmetic Puzzle/Solution.py26 # Create a variable 'sign' to check whether we have to add it or subtract it.
MEDIUM…on/1300-1399/1307.Verbal Arithmetic Puzzle/Solution.py92 # Create a HashMap for the letter to digit mapping.
MEDIUM…on/1300-1399/1307.Verbal Arithmetic Puzzle/Solution.py95 # Create a list for the digit to letter mapping.
MEDIUM…ution/0100-0199/0176.Second Highest Salary/Solution.py17 # Create a DataFrame with the second highest salary
Decorative Section Separators2 hits · 6 pts
SeverityFileLineSnippet
MEDIUM.github/workflows/prettier.yml13 # ---------------------------------------------------------
MEDIUM.github/workflows/prettier.yml17 # ---------------------------------------------------------
Unused Imports4 hits · 4 pts
SeverityFileLineSnippet
LOWsolution/main.py9
LOW… an Expression Tree With Evaluate Function/Solution.py1
LOW…/3700-3799/3705.Find Golden Hour Customers/Solution.py2
LOW…17.Find Students with Study Spiral Pattern/Solution.py2
AI Slop Vocabulary1 hit · 2 pts
SeverityFileLineSnippet
LOW…on/1300-1399/1307.Verbal Arithmetic Puzzle/Solution.py79 # If nothing is correct then just return false.