Repository Analysis

kamyu104/LeetCode-Solutions

🏋️ Python / Modern C++ Solutions of All 3991 LeetCode Problems (Weekly Update)

8.7 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of kamyu104/LeetCode-Solutions, a C++ project with 5,885 GitHub stars. SynthScan v2.0 examined 328,625 lines of code across 7596 source files, recording 1319 pattern matches distributed across 10 syntactic categories. The overall adjusted score of 8.7 places this repository in the Low AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

8.7
Adjusted Score
8.7
Raw Score
100%
Time Factor
2026-07-12
Last Push
5.9K
Stars
C++
Language
328.6K
Lines of Code
7.6K
Files
1.3K
Pattern Hits
2026-07-14
Scan Date
0.05
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 376MEDIUM 3LOW 940

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 1319 distinct pattern matches across 10 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Cross-File Repetition360 hits · 1800 pts
SeverityFileLineSnippetContext
HIGHPython/online-majority-element-in-subarray.py0initialize your data structure here. :type nums: list[int]STRING
HIGHPython/falling-squares.py0initialize your data structure here. :type nums: list[int]STRING
HIGHPython/range-sum-query-immutable.py0initialize your data structure here. :type nums: list[int]STRING
HIGHPython/range-sum-query-mutable.py0initialize your data structure here. :type nums: list[int]STRING
HIGHPython/count-the-number-of-fair-pairs.py0:type nums: list[int] :type lower: int :type upper: int :rtype: list[str]STRING
HIGHPython/count-of-range-sum.py0:type nums: list[int] :type lower: int :type upper: int :rtype: list[str]STRING
HIGHPython/missing-ranges.py0:type nums: list[int] :type lower: int :type upper: int :rtype: list[str]STRING
HIGHPython/count-stable-subarrays.py0:type n: int :type edges: list[list[int]] :type hasapple: list[bool] :rtype: intSTRING
HIGHPython/maximum-xor-with-an-element-from-array.py0:type n: int :type edges: list[list[int]] :type hasapple: list[bool] :rtype: intSTRING
HIGHPython/maximum-xor-score-subarray-queries.py0:type n: int :type edges: list[list[int]] :type hasapple: list[bool] :rtype: intSTRING
HIGH…ents-in-array-after-removing-and-replacing-elements.py0:type n: int :type edges: list[list[int]] :type hasapple: list[bool] :rtype: intSTRING
HIGHPython/peaks-in-array.py0:type n: int :type edges: list[list[int]] :type hasapple: list[bool] :rtype: intSTRING
HIGHPython/mark-elements-on-array-by-performing-queries.py0:type n: int :type edges: list[list[int]] :type hasapple: list[bool] :rtype: intSTRING
HIGHPython/range-xor-queries-with-subarray-reversals.py0:type n: int :type edges: list[list[int]] :type hasapple: list[bool] :rtype: intSTRING
HIGHPython/maximize-count-of-distinct-primes-after-split.py0:type n: int :type edges: list[list[int]] :type hasapple: list[bool] :rtype: intSTRING
HIGHPython/minimum-absolute-difference-queries.py0:type n: int :type edges: list[list[int]] :type hasapple: list[bool] :rtype: intSTRING
HIGHPython/threshold-majority-queries.py0:type n: int :type edges: list[list[int]] :type hasapple: list[bool] :rtype: intSTRING
HIGH…smallest-remaining-even-integer-in-subarray-queries.py0:type n: int :type edges: list[list[int]] :type hasapple: list[bool] :rtype: intSTRING
HIGH…umber-of-integers-with-popcount-depth-equal-to-k-ii.py0:type n: int :type edges: list[list[int]] :type hasapple: list[bool] :rtype: intSTRING
HIGHPython/minimum-cost-to-move-between-indices.py0:type n: int :type edges: list[list[int]] :type hasapple: list[bool] :rtype: intSTRING
HIGH…thon/sum-of-special-evenly-spaced-elements-in-array.py0:type n: int :type edges: list[list[int]] :type hasapple: list[bool] :rtype: intSTRING
HIGHPython/reachable-nodes-in-subdivided-graph.py0:type n: int :type edges: list[list[int]] :type hasapple: list[bool] :rtype: intSTRING
HIGHPython/top-k-frequent-elements.py0:type n: int :type edges: list[list[int]] :type hasapple: list[bool] :rtype: intSTRING
HIGHPython/k-radius-subarray-averages.py0:type n: int :type edges: list[list[int]] :type hasapple: list[bool] :rtype: intSTRING
HIGHPython/sliding-window-maximum.py0:type n: int :type edges: list[list[int]] :type hasapple: list[bool] :rtype: intSTRING
HIGHPython/find-the-most-competitive-subsequence.py0:type n: int :type edges: list[list[int]] :type hasapple: list[bool] :rtype: intSTRING
HIGHPython/find-the-power-of-k-size-subarrays-i.py0:type n: int :type edges: list[list[int]] :type hasapple: list[bool] :rtype: intSTRING
HIGHPython/rotate-non-negative-elements.py0:type n: int :type edges: list[list[int]] :type hasapple: list[bool] :rtype: intSTRING
HIGHPython/find-the-power-of-k-size-subarrays-ii.py0:type n: int :type edges: list[list[int]] :type hasapple: list[bool] :rtype: intSTRING
HIGHPython/find-x-value-of-array-i.py0:type n: int :type edges: list[list[int]] :type hasapple: list[bool] :rtype: intSTRING
HIGH…n/smallest-subarray-to-sort-in-every-sliding-window.py0:type n: int :type edges: list[list[int]] :type hasapple: list[bool] :rtype: intSTRING
HIGH…n/find-subsequence-of-length-k-with-the-largest-sum.py0:type n: int :type edges: list[list[int]] :type hasapple: list[bool] :rtype: intSTRING
HIGHPython/maximize-sum-of-at-most-k-distinct-elements.py0:type n: int :type edges: list[list[int]] :type hasapple: list[bool] :rtype: intSTRING
HIGHPython/reverse-k-subarrays.py0:type n: int :type edges: list[list[int]] :type hasapple: list[bool] :rtype: intSTRING
HIGHPython/largest-subarray-length-k.py0:type n: int :type edges: list[list[int]] :type hasapple: list[bool] :rtype: intSTRING
HIGHPython/distinct-numbers-in-each-subarray.py0:type n: int :type edges: list[list[int]] :type hasapple: list[bool] :rtype: intSTRING
HIGHPython/concatenated-divisibility.py0:type n: int :type edges: list[list[int]] :type hasapple: list[bool] :rtype: intSTRING
HIGHPython/delayed-count-of-equal-elements.py0:type n: int :type edges: list[list[int]] :type hasapple: list[bool] :rtype: intSTRING
HIGHPython/limit-occurrences-in-sorted-array.py0:type n: int :type edges: list[list[int]] :type hasapple: list[bool] :rtype: intSTRING
HIGHPython/maximum-sum-of-3-non-overlapping-subarrays.py0:type n: int :type edges: list[list[int]] :type hasapple: list[bool] :rtype: intSTRING
HIGHPython/find-all-good-indices.py0:type n: int :type edges: list[list[int]] :type hasapple: list[bool] :rtype: intSTRING
HIGH…divide-an-array-into-subarrays-with-minimum-cost-ii.py0:type n: int :type edges: list[list[int]] :type hasapple: list[bool] :rtype: intSTRING
HIGHPython/minimum-time-for-k-connected-components.py0:type n: int :type edges: list[list[int]] :type hasapple: list[bool] :rtype: intSTRING
HIGHPython/minimize-maximum-component-cost.py0:type n: int :type edges: list[list[int]] :type hasapple: list[bool] :rtype: intSTRING
HIGH…thon/maximize-spanning-tree-stability-with-upgrades.py0:type n: int :type edges: list[list[int]] :type hasapple: list[bool] :rtype: intSTRING
HIGH…on/minimum-cost-to-repair-edges-to-traverse-a-graph.py0:type n: int :type edges: list[list[int]] :type hasapple: list[bool] :rtype: intSTRING
HIGHPython/zero-array-transformation-i.py0:type n: int :type edges: list[list[int]] :type hasapple: list[bool] :rtype: intSTRING
HIGHPython/maximum-xor-of-two-non-overlapping-subtrees.py0:type n: int :type edges: list[list[int]] :type hasapple: list[bool] :rtype: intSTRING
HIGH…max-number-of-edges-to-keep-graph-fully-traversable.py0:type n: int :type edges: list[list[int]] :type hasapple: list[bool] :rtype: intSTRING
HIGHPython/find-champion-ii.py0:type n: int :type edges: list[list[int]] :type hasapple: list[bool] :rtype: intSTRING
HIGHPython/count-the-number-of-complete-components.py0:type n: int :type edges: list[list[int]] :type hasapple: list[bool] :rtype: intSTRING
HIGH…inimum-distance-excluding-one-maximum-weighted-edge.py0:type n: int :type edges: list[list[int]] :type hasapple: list[bool] :rtype: intSTRING
HIGHPython/maximum-sum-of-edge-values-in-a-graph.py0:type n: int :type edges: list[list[int]] :type hasapple: list[bool] :rtype: intSTRING
HIGH…minimum-time-to-reach-destination-in-directed-graph.py0:type n: int :type edges: list[list[int]] :type hasapple: list[bool] :rtype: intSTRING
HIGHPython/minimum-cost-path-with-edge-reversals.py0:type n: int :type edges: list[list[int]] :type hasapple: list[bool] :rtype: intSTRING
HIGHPython/incremental-even-weighted-cycle-queries.py0:type n: int :type edges: list[list[int]] :type hasapple: list[bool] :rtype: intSTRING
HIGHPython/count-valid-paths-in-a-tree.py0:type n: int :type edges: list[list[int]] :type hasapple: list[bool] :rtype: intSTRING
HIGHPython/minimum-degree-of-a-connected-trio-in-a-graph.py0:type n: int :type edges: list[list[int]] :type hasapple: list[bool] :rtype: intSTRING
HIGH…t-unreachable-pairs-of-nodes-in-an-undirected-graph.py0:type n: int :type edges: list[list[int]] :type hasapple: list[bool] :rtype: intSTRING
HIGH…mber-of-connected-components-in-an-undirected-graph.py0:type n: int :type edges: list[list[int]] :type hasapple: list[bool] :rtype: intSTRING
300 more matches not shown…
Deep Nesting762 hits · 762 pts
SeverityFileLineSnippetContext
LOWPython/find-the-grid-of-region-average.py6CODE
LOWPython/finding-3-digit-even-numbers.py38CODE
LOWPython/check-if-word-can-be-placed-in-crossword.py5CODE
LOWPython/check-if-word-can-be-placed-in-crossword.py40CODE
LOWPython/time-taken-to-mark-all-nodes.py6CODE
LOWPython/time-taken-to-mark-all-nodes.py11CODE
LOWPython/time-taken-to-mark-all-nodes.py30CODE
LOW…er-of-flips-to-convert-binary-matrix-to-zero-matrix.py8CODE
LOWPython/maximum-manhattan-distance-after-k-changes.py6CODE
LOW…hon/longest-path-with-different-adjacent-characters.py9CODE
LOW…hon/longest-path-with-different-adjacent-characters.py49CODE
LOW…hon/longest-path-with-different-adjacent-characters.py15CODE
LOW…hon/longest-path-with-different-adjacent-characters.py55CODE
LOWPython/count-all-possible-routes.py8CODE
LOWPython/count-all-possible-routes.py54CODE
LOW…/build-binary-expression-tree-from-infix-expression.py13CODE
LOW…on/maximize-the-distance-between-points-on-a-square.py6CODE
LOW…on/maximize-the-distance-between-points-on-a-square.py57CODE
LOW…on/maximize-the-distance-between-points-on-a-square.py115CODE
LOW…on/maximize-the-distance-between-points-on-a-square.py165CODE
LOW…on/maximize-the-distance-between-points-on-a-square.py22CODE
LOW…on/maximize-the-distance-between-points-on-a-square.py73CODE
LOWPython/sum-of-remoteness-of-all-cells.py6CODE
LOWPython/sum-of-remoteness-of-all-cells.py12CODE
LOWPython/maximum-xor-of-two-non-overlapping-subtrees.py33CODE
LOWPython/maximum-xor-of-two-non-overlapping-subtrees.py40CODE
LOWPython/maximum-xor-of-two-non-overlapping-subtrees.py55CODE
LOW…/maximum-number-of-subsequences-after-one-inserting.py6CODE
LOW…imum-operations-to-form-subsequence-with-target-sum.py7CODE
LOW…max-number-of-edges-to-keep-graph-fully-traversable.py24CODE
LOWPython/word-squares-ii.py9CODE
LOWPython/word-squares-ii.py38CODE
LOWPython/search-in-rotated-sorted-array-ii.py5CODE
LOWPython/count-of-integers.py6CODE
LOWPython/count-of-integers.py15CODE
LOWPython/maximum-compatibility-score-sum.py9CODE
LOWPython/maximum-compatibility-score-sum.py17CODE
LOWPython/minimum-xor-sum-of-two-arrays.py6CODE
LOWPython/minimum-xor-sum-of-two-arrays.py9CODE
LOWPython/max-points-on-a-line.py14CODE
LOWPython/find-minimum-diameter-after-merging-two-trees.py6CODE
LOWPython/find-minimum-diameter-after-merging-two-trees.py87CODE
LOWPython/find-minimum-diameter-after-merging-two-trees.py134CODE
LOWPython/find-minimum-diameter-after-merging-two-trees.py15CODE
LOWPython/find-minimum-diameter-after-merging-two-trees.py96CODE
LOWPython/find-minimum-diameter-after-merging-two-trees.py143CODE
LOWPython/find-minimum-diameter-after-merging-two-trees.py16CODE
LOWPython/find-minimum-diameter-after-merging-two-trees.py97CODE
LOWPython/find-minimum-diameter-after-merging-two-trees.py144CODE
LOWPython/word-pattern-ii.py17CODE
LOW…n/count-non-decreasing-arrays-with-given-digit-sums.py23CODE
LOWPython/swap-adjacent-in-lr-string.py9CODE
LOWPython/maximum-number-of-fish-in-a-grid.py6CODE
LOWPython/maximum-number-of-fish-in-a-grid.py12CODE
LOWPython/sparse-matrix-multiplication.py5CODE
LOWPython/count-palindromic-subsequences.py36CODE
LOWPython/strings-differ-by-one-character.py8CODE
LOWPython/walking-robot-simulation.py5CODE
LOWPython/string-compression-ii.py5CODE
LOW…the-lexicographically-largest-string-from-the-box-i.py6CODE
702 more matches not shown…
Cross-Language Confusion16 hits · 95 pts
SeverityFileLineSnippetContext
HIGHPython/find-the-index-of-the-large-integer.py17 left, right = 0, reader.length()-1CODE
HIGHPython/guess-the-majority-in-a-hidden-array.py27 for i in reversed(xrange(4, reader.length())):CODE
HIGHPython/implement-stack-using-queues.py35 self.q_.push(x)CODE
HIGHPython/implement-stack-using-queues.py37 self.q_.push(self.q_.pop())CODE
HIGHPython/implement-stack-using-queues.py63 self.q_.push(x)CODE
HIGHPython/implement-stack-using-queues.py70 self.q_.push(self.top_)CODE
HIGHPython/find-in-mountain-array.py39 peak = binarySearch(mountain_arr, 0, mountain_arr.length()-1,CODE
HIGHPython/find-in-mountain-array.py45 right = binarySearch(mountain_arr, peak, mountain_arr.length()-1,CODE
HIGHPython/find-in-mountain-array.py47 if right <= mountain_arr.length()-1 and mountain_arr.get(right) == target:CODE
HIGHPython/invert-binary-tree.py40 nodes.push(root)CODE
HIGHPython/invert-binary-tree.py45 nodes.push(node.left)CODE
HIGHPython/invert-binary-tree.py47 nodes.push(node.right)CODE
HIGH…perations-to-make-elements-within-k-subarrays-equal.py142 self.left.push(val)CODE
HIGH…perations-to-make-elements-within-k-subarrays-equal.py145 self.right.push(val)CODE
HIGH…perations-to-make-elements-within-k-subarrays-equal.py162 self.left.push(self.right.top())CODE
HIGH…perations-to-make-elements-within-k-subarrays-equal.py167 self.right.push(self.left.top())CODE
Over-Commented Block83 hits · 83 pts
SeverityFileLineSnippetContext
LOWC++/encode-n-ary-tree-to-binary-tree.cpp81// Your Codec object will be instantiated and called as such:COMMENT
LOWC++/subtree-removal-game-with-fibonacci-tree.cpp1// Time: O(1)COMMENT
LOWC++/subsequences-with-a-unique-middle-mode-ii.cpp41 result += nC2(l) * nC2(r);COMMENT
LOWC++/pizza-with-3n-slices.cpp1// Time: O(n^2)COMMENT
LOWC++/sum-of-all-odd-length-subarrays.cpp1// Time: O(n)COMMENT
LOWC++/smallest-all-ones-multiple.cpp1// Time: O(k)COMMENT
LOWC++/lowest-common-ancestor-of-a-binary-tree.cpp21 // 1. If the current subtree contains both p and q,COMMENT
LOWC++/airplane-seat-assignment-probability.cpp1// Time: O(1)COMMENT
LOWC++/clumsy-factorial.cpp1// Time: O(1)COMMENT
LOWC++/smallest-integer-divisible-by-k.cpp1// Time: O(k)COMMENT
LOWC++/minimum-knight-moves.cpp21 // [2,(1),4]COMMENT
LOWC++/divisor-game.cpp1// Time: O(1)COMMENT
LOWC++/cat-and-mouse-ii.cpp201 q1.emplace(ni, nj, nt);COMMENT
LOW…+/minimum-one-bit-operations-to-make-integers-zero.cpp1// Time: O(logn)COMMENT
LOW…+/minimum-one-bit-operations-to-make-integers-zero.cpp41 // f(100) = 2 * f(10) + 1 = 7COMMENT
LOWC++/intersection-of-two-arrays-ii.cpp1// If the given array is not sorted and the memory is unlimited:COMMENT
LOWC++/the-number-of-ways-to-make-the-sum.cpp1// Time: O(1)COMMENT
LOWC++/the-number-of-ways-to-make-the-sum.cpp21 // 1 1 1COMMENT
LOWC++/the-number-of-ways-to-make-the-sum.cpp41 // 1 1 1 1 1 1COMMENT
LOWC++/the-number-of-ways-to-make-the-sum.cpp61 // extend:COMMENT
LOWC++/the-number-of-ways-to-make-the-sum.cpp81 // 1 1 1 2 2 2COMMENT
LOWC++/the-number-of-ways-to-make-the-sum.cpp101 // 1 1 4 4COMMENT
LOWC++/the-number-of-ways-to-make-the-sum.cpp121 // 1 1 1 4 4COMMENT
LOWC++/the-number-of-ways-to-make-the-sum.cpp141 // 1 1 2 2 2 2 2COMMENT
LOWC++/the-number-of-ways-to-make-the-sum.cpp161 // 1 1 1 1 1 1 1 6COMMENT
LOWC++/maximum-students-taking-exam.cpp1// Time: O(m * n * sqrt(m * n))COMMENT
LOWC++/implement-trie-prefix-tree.cpp61};COMMENT
LOW…/minimum-garden-perimeter-to-collect-enough-apples.cpp1// Time: O(1)COMMENT
LOW…/minimum-garden-perimeter-to-collect-enough-apples.cpp41 // . . . COMMENT
LOW…/minimum-garden-perimeter-to-collect-enough-apples.cpp81 // . . . COMMENT
LOWC++/sum-game.cpp1// Time: O(n)COMMENT
LOWC++/range-sum-query-immutable.cpp21COMMENT
LOWC++/super-egg-drop.cpp21 // let f(n, K) be the max number of floors could be solved by n moves and K eggs,COMMENT
LOWC++/maximum-of-absolute-value-expression.cpp1// Time: O(n)COMMENT
LOWC++/find-array-given-subset-sums.cpp1// Time: O(n * 2^n), len(sums) = 2^nCOMMENT
LOWC++/encode-and-decode-tinyurl.cpp41// Solution solution;COMMENT
LOWC++/subsequences-with-a-unique-middle-mode-i.cpp41 result += nC2(l) * nC2(r);COMMENT
LOWC++/painting-a-grid-with-three-different-colors.cpp141 const auto& adj = find_adj(m, basis, dp); // alternative of backtracking, Time: O(3^m), Space: O(3^m)COMMENT
LOWC++/number-of-burgers-with-no-waste-of-ingredients.cpp1// Time: O(1)COMMENT
LOWC++/maximum-number-of-accepted-invitations.cpp1// Time: O(m * n * sqrt(m + n))COMMENT
LOWC++/stone-game-ix.cpp21 // iff abs(count[1]-count[2]) >= 3, then alice takes the most one at first, the remains are deterministic for boCOMMENT
LOWC++/stream-of-characters2.cpp1// Time: ctor: O(n + p^2), n is the total size of patternsCOMMENT
LOWC++/integer-break.cpp1// Time: O(logn), pow is O(logn).COMMENT
LOWC++/integer-break.cpp21 //COMMENT
LOWPython/cat-and-mouse-ii.py181 # if not degree[ni, nj, nt]:COMMENT
LOWPython/sum-of-all-odd-length-subarrays.py21 # as the graph depicted above,COMMENT
LOWPython/maximum-number-of-ones.py21 # 4. fill one into matrix by tile part of which count is in descending orderCOMMENT
LOWPython/airplane-seat-assignment-probability.py1# Time: O(1)COMMENT
LOWPython/maximum-of-absolute-value-expression.py1# Time: O(n)COMMENT
LOWPython/stone-game-ix.py21 # ^COMMENT
LOWPython/rectangle-area.py1# Time: O(1)COMMENT
LOWPython/lowest-common-ancestor-of-a-binary-tree.py1# Time: O(n)COMMENT
LOWPython/clumsy-factorial.py1# Time: O(1)COMMENT
LOWPython/permutations.py41COMMENT
LOW…n/minimum-garden-perimeter-to-collect-enough-apples.py41class Solution2(object):COMMENT
LOW…n/minimum-garden-perimeter-to-collect-enough-apples.py81# Space: O(1)COMMENT
LOWPython/painting-a-grid-with-three-different-colors.py141 if m > n:COMMENT
LOWPython/subsequences-with-a-unique-middle-mode-i.py41 # bb/a/acCOMMENT
LOWPython/stream-of-characters2.py1# Time: ctor: O(n + p^2), n is the total size of patternsCOMMENT
LOWPython/stream-of-characters2.py81# obj = StreamChecker(words)COMMENT
23 more matches not shown…
Hyper-Verbose Identifiers66 hits · 66 pts
SeverityFileLineSnippetContext
LOWPython/online-majority-element-in-subarray.py72 def boyer_moore_majority_vote(nums, left, right):CODE
LOWPython/online-majority-element-in-subarray.py235 def __boyer_moore_majority_vote(self, nums, left, right):CODE
LOWPython/maximum-prime-difference.py5def linear_sieve_of_eratosthenes(n): # Time: O(n), Space: O(n)CODE
LOWPython/number-of-ways-to-buy-pens-and-pencils.py23 def arithmetic_progression_sum(a, d, l):CODE
LOWPython/design-excel-sum-formula.py63 def __calc_and_update_dependency(self, r, c, strs):CODE
LOWPython/index-pairs-of-a-string.py38 def __create_ac_suffix_and_output_links(self, root): # Time: O(n), Space: O(t)CODE
LOWPython/divisible-and-non-divisible-sums-difference.py12 def arithmetic_progression_sum(a, d, l):CODE
LOWPython/most-frequent-prime.py9def linear_sieve_of_eratosthenes(n): # Time: O(n), Space: O(n)CODE
LOWPython/apply-operations-to-maximize-score.py16 def linear_sieve_of_eratosthenes(n): # Time: O(n), Space: O(n)CODE
LOWPython/apply-operations-to-maximize-score.py31 def count_of_distinct_prime_factors(x):CODE
LOWPython/count-prime-gap-balanced-subarrays.py9def linear_sieve_of_eratosthenes(n): # Time: O(n), Space: O(n)CODE
LOWPython/maximize-fixed-points-after-deletions.py14 def longest_increasing_subsequence(arr):CODE
LOWPython/count-the-number-of-square-free-subsets.py14 def linear_sieve_of_eratosthenes(n): # Time: O(n), Space: O(n)CODE
LOWPython/count-the-number-of-square-free-subsets.py66 def linear_sieve_of_eratosthenes(n): # Time: O(n), Space: O(n)CODE
LOW…n/minimum-number-of-valid-strings-to-form-target-ii.py71 def __create_ac_suffix_and_output_links(self, root): # Time: O(n), Space: O(t)CODE
LOWPython/html-entity-parser.py40 def __create_ac_suffix_and_output_links(self, root): # Time: O(n), Space: O(t)CODE
LOWPython/minimum-index-of-a-valid-split.py11 def boyer_moore_majority_vote():CODE
LOW…um-division-operations-to-make-array-non-decreasing.py6def linear_sieve_of_eratosthenes(n):CODE
LOWPython/sum-of-primes-between-number-and-its-reverse.py6def linear_sieve_of_eratosthenes(n): # Time: O(n), Space: O(n)CODE
LOW…on/minimum-number-of-valid-strings-to-form-target-i.py71 def __create_ac_suffix_and_output_links(self, root): # Time: O(n), Space: O(t)CODE
LOWPython/maximize-count-of-distinct-primes-after-split.py8def linear_sieve_of_eratosthenes(n): # Time: O(n), Space: O(n)CODE
LOWPython/number-of-ways-to-separate-numbers.py11 def find_longest_common_prefix(num):CODE
LOWPython/number-of-ways-to-separate-numbers.py19 def is_less_or_equal_to_with_same_length(num, lcp, i, j, l):CODE
LOW…n/minimum-operations-to-make-the-array-k-increasing.py14 def longest_non_decreasing_subsequence(arr):CODE
LOW…hon/find-the-count-of-numbers-which-are-not-special.py9def linear_sieve_of_eratosthenes(n): # Time: O(n), Space: O(n)CODE
LOWPython/majority-element.py13 def boyer_moore_majority_vote():CODE
LOWPython/count-valid-paths-in-a-tree.py12 def linear_sieve_of_eratosthenes(n): # Time: O(n), Space: O(n)CODE
LOWPython/count-valid-paths-in-a-tree.py77 def linear_sieve_of_eratosthenes(n): # Time: O(n), Space: O(n)CODE
LOWPython/count-valid-paths-in-a-tree.py159 def linear_sieve_of_eratosthenes(n): # Time: O(n), Space: O(n)CODE
LOWPython/minimum-runes-to-add-to-cast-spell.py6def strongly_connected_components(adj): # Time: O(|V| + |E|) = O(N + 2N) = O(N), Space: O(|V|) = O(N)CODE
LOW…hon/count-ways-to-choose-coprime-integers-from-rows.py15 def linear_sieve_of_eratosthenes(n): # Time: O(n), Space: O(n)CODE
LOWPython/distinct-prime-factors-of-product-of-array.py6def linear_sieve_of_eratosthenes(n):CODE
LOWPython/gcd-sort-of-an-array.py41 def modified_sieve_of_eratosthenes(n, lookup, uf): # Time: O(n * log(logn)), Space: O(n)CODE
LOWPython/count-primes.py35 def linear_sieve_of_eratosthenes(n):CODE
LOWPython/minimum-swaps-to-avoid-forbidden-values.py12 def boyer_moore_majority_vote(arr):CODE
LOWPython/stream-of-characters2.py45 def __create_ac_suffix_and_output_links(self, root): # Time: O(n + p^2), Space: O(t + p^2)CODE
LOWPython/minimum-number-of-days-to-disconnect-island.py6def iter_get_articulation_points(graph, v): # modifiedCODE
LOWPython/length-of-the-longest-increasing-path.py15 def longest_increasing_subsequence(arr):CODE
LOWPython/prime-in-diagonal.py6def linear_sieve_of_eratosthenes(n):CODE
LOWPython/preimage-size-of-factorial-zeroes-function.py10 def count_of_factorial_primes(n, p):CODE
LOWPython/digit-operations-to-make-two-integers-equal.py15 def linear_sieve_of_eratosthenes(n): # Time: O(n), Space: O(n)CODE
LOWPython/prime-subtraction-operation.py8def linear_sieve_of_eratosthenes(n):CODE
LOWPython/maximum-subarray-with-equal-products.py9def linear_sieve_of_eratosthenes(n): # Time: O(n), Space: O(n)CODE
LOWPython/stream-of-characters.py45 def __create_ac_suffix_and_output_links(self, root): # Time: O(n), Space: O(t)CODE
LOW…perations-to-transform-array-into-alternating-prime.py6def linear_sieve_of_eratosthenes(n): # Time: O(n), Space: O(n)CODE
LOWPython/greatest-common-divisor-traversal.py6def linear_sieve_of_eratosthenes(n): # Time: O(n), Space: O(n)CODE
LOW…an-original-string-exists-given-two-encoded-strings.py27 def optimized_possible_numbers(s):CODE
LOW…/find-the-minimum-possible-sum-of-a-beautiful-array.py8 def arithmetic_progression_sum(a, d, n):CODE
LOWPython/check-if-any-element-has-prime-frequency.py9def linear_sieve_of_eratosthenes(n):CODE
LOW…imum-number-of-increasing-subsequence-to-be-removed.py14 def longest_non_increasing_subsequence(arr):CODE
LOW…oduct-of-the-length-of-two-palindromic-subsequences.py10 def palindromic_subsequence_length(s, mask):CODE
LOWPython/prime-pairs-with-target-sum.py11 def linear_sieve_of_eratosthenes(n):CODE
LOWPython/sum-of-perfect-square-ancestors.py8def linear_sieve_of_eratosthenes(n): # Time: O(n), Space: O(n)CODE
LOWPython/count-the-number-of-ideal-arrays.py24 def linear_sieve_of_eratosthenes(n): # Time: O(n), Space: O(n)CODE
LOWPython/split-array-by-prime-indices.py6def linear_sieve_of_eratosthenes(n): # Time: O(n), Space: O(n)CODE
LOWPython/closest-prime-numbers-in-range.py37def linear_sieve_of_eratosthenes(n):CODE
LOWPython/maximize-cyclic-partition-score.py12 def best_time_to_buy_and_sell_stock_v(base):CODE
LOW…/minimum-jumps-to-reach-end-via-prime-teleportation.py9def linear_sieve_of_eratosthenes(n): # Time: O(n), Space: O(n)CODE
LOWPython/divisible-game.py9def linear_sieve_of_eratosthenes(n): # Time: O(n), Space: O(n)CODE
LOWPython/count-ways-to-make-array-with-product.py22 def linear_sieve_of_eratosthenes(n): # Time: O(n), Space: O(n)CODE
6 more matches not shown…
Unused Imports17 hits · 17 pts
SeverityFileLineSnippetContext
LOWPython/smallest-rectangle-enclosing-black-pixels.py4CODE
LOWPython/number-of-distinct-roll-sequences.py4CODE
LOWPython/minimum-cost-to-split-an-array.py4CODE
LOWPython/verbal-arithmetic-puzzle.py4CODE
LOW…al-array-state-after-k-multiplication-operations-ii.py4CODE
LOW…al-array-state-after-k-multiplication-operations-ii.py47CODE
LOWPython/match-substring-after-replacement.py4CODE
LOWPython/match-substring-after-replacement.py32CODE
LOWPython/course-schedule-iii.py4CODE
LOWPython/distinct-subsequences-ii.py4CODE
LOWPython/frequencies-of-shortest-supersequences.py4CODE
LOWPython/median-of-a-row-wise-sorted-matrix.py4CODE
LOW…nal-array-state-after-k-multiplication-operations-i.py4CODE
LOW…nal-array-state-after-k-multiplication-operations-i.py46CODE
LOW…number-of-nodes-in-the-sub-tree-with-the-same-label.py49CODE
LOW…on/design-an-expression-tree-with-evaluate-function.py4CODE
LOWPython/multiply-two-polynomials.py5CODE
AI Structural Patterns9 hits · 9 pts
SeverityFileLineSnippetContext
LOW…hon/number-of-ways-to-reorder-array-to-get-same-bst.py61CODE
LOWPython/maximum-difference-between-node-and-ancestor.py50CODE
LOWPython/minimum-cost-to-make-arrays-identical.py23CODE
LOWPython/maximum-total-value.py41CODE
LOW…thmetic-sequence-after-changing-at-most-one-element.py31CODE
LOWPython/count-the-number-of-infection-sequences.py31CODE
LOWPython/maximum-coins-from-k-consecutive-bags.py27CODE
LOWPython/number-of-1-bits.py64CODE
LOWPython/subsequence-with-the-minimum-score.py25CODE
Decorative Section Separators3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMPython/sum-of-all-odd-length-subarrays.py14 # ----------------------------COMMENT
MEDIUMPython/maximum-number-of-ones.py32 # ---------------------------COMMENT
MEDIUMPython/maximum-number-of-ones.py38 # ---------------------------COMMENT
Overly Generic Function Names2 hits · 2 pts
SeverityFileLineSnippetContext
LOWPython/convert-sorted-array-to-binary-search-tree.py55 def helper(self, start, end):CODE
LOW…uct-binary-tree-from-preorder-and-inorder-traversal.py42 def helper(start, end):CODE
AI Slop Vocabulary1 hit · 1 pts
SeverityFileLineSnippetContext
LOW…r-that-sum-of-the-prices-is-less-than-or-equal-to-k.py131 return binary_search_right(1, max(k<<2, 1<<x), lambda v: count(v) <= k) # right bound is verified by checking aCODE