LeetCode Library
Catalog the drills. Don’t blog them.
The main blog stays essay-oriented. This section is the working archive: searchable, filterable, and built directly from the same daily source file.
Finder
Find the right drill fast
Study dashboard
Use the mix to pick difficulty, then jump into the strongest recurring routes.
Difficulty mix
Recent run
Top pattern routes
Practice signals
Repeated drills, long thinking traces, misses, and tiny solutions extracted from the daily notes.
j thinking trace.
Couldn’t solve cleanly
81
Marked with did not solve, could not solve, or give up language.
Almost gave up
60
Minute markers plus hints, wrong answers, or explicit stopping points.
One-liners
69
Shortest Kotlin or Rust solution is two nonblank lines or less.
Comebacks
7
Repeated problems first marked stuck, then later solved cleaner.
Repeat ledger
Same problem, different date. The timeline compares solution length and thinking trace changes.
16.11.2023 to 08.03.2026
- 16.11.2023 8 lines
- 20.02.2025 3 lines
- 08.03.2026 4 lines
18.02.2024 to 27.12.2025
- 18.02.2024 10 lines
- 11.07.2025 10 lines
- 27.12.2025 10 lines , 17 thoughts
14.11.2023 to 21.11.2025
- 14.11.2023 11 lines
- 04.01.2025 5 lines
- 21.11.2025 3 lines , 4 thoughts
04.03.2023 to 26.04.2025
- 04.03.2023 77 lines
- 31.03.2024 10 lines , 28 thoughts
- 26.04.2025 9 lines , 7 thoughts
28.06.2023 to 31.08.2024
- 28.06.2023 18 lines
- 27.08.2024 15 lines
- 31.08.2024 9 lines
13.12.2023 to 04.08.2026
- 13.12.2023 10 lines
- 04.08.2026 4 lines
Couldn’t first, solved later
Honest slices
Useful edge categories for choosing what to revisit next.
Long j sections
- 1611. Minimum One Bit Operations to Make Integers Zero 86 thought lines, 45 min
- 2561. Rearranging Fruits 80 thought lines, 29 min
- 3480. Maximize Subarrays After Removing One Conflicting Pair 72 thought lines, 36 min
- 761. Special Binary String 67 thought lines, 30 min
- 3660. Jump Game IX 65 thought lines, 61 min
- 3495. Minimum Operations to Make Array Elements Zero 64 thought lines, 44 min
Couldn’t solve
- 1665. Minimum Initial Energy to Finish Tasks 12.05.2026, 26 min
- 3225. Maximum Score From Grid Operations 29.04.2026, 78 min
- 3464. Maximize the Distance Between Points on a Square 25.04.2026, 70 min
- 2615. Sum of Distances 23.04.2026
- 2463. Minimum Total Distance Traveled 14.04.2026, 30 min
- 3655. XOR After Range Multiplication Queries II 09.04.2026, 58 min
Almost gave up
- 1900. The Earliest and Latest Rounds Where Players Compete 103 min, 40 thought lines
- 664. Strange Printer 90 min, 9 thought lines
- 3225. Maximum Score From Grid Operations 78 min, 7 thought lines
- 1039. Minimum Score Triangulation of Polygon 76 min, 40 thought lines
- 3445. Maximum Difference Between Even and Odd Frequency II 75 min, 38 thought lines
- 3343. Count Number of Balanced Permutations 75 min, 24 thought lines
Smallest solutions
- 344. Reverse String 1 lines, 45 chars, kotlin
- 1780. Check if Number is a Sum of Powers of Three 1 lines, 54 chars, kotlin
- 342. Power of Four 1 lines, 88 chars, kotlin
- 1822. Sign of the Product of an Array 1 lines, 102 chars, kotlin
- 1269. Number of Ways to Stay in the Same Place After Some Steps 2 lines, 47 chars, kotlin
- 1846. Maximum Element After Decreasing and Rearranging 2 lines, 47 chars, kotlin
Browse the map
Start with a year, a language, or one of the recurring patterns.
Years
Languages
Collections
Patterns
- Array385
- Graph214
- String205
- Sorting155
- Dynamic Programming99
- Simulation98
- Tree96
- Binary Search83
- Math76
- Bit Manipulation75
- Hash Map66
- Two Pointers61
- Stack52
- Sliding Window51
- Heap44
- Backtracking37
- Linked List37
- Greedy33
- Union Find33
- Queue28
- Prefix Sum20
- Trie17
- Intervals15
- Monotonic Stack13
Archive
Newest first. Start broad, then filter down. Each entry opens the full post for that day.
14.05.2026
easy2784. Check if Array is Good
Is combination 1..n,n
13.05.2026
medium1674. Minimum Moves to Make Array Complementary
Min changes 1..L to make complementary pair sum equal
12.05.2026
hard1665. Minimum Initial Energy to Finish Tasks
Energy for all tasks (spend, limit)
11.05.2026
easy2553. Separate the Digits in an Array
LIst of numbers to list of digits
10.05.2026
medium2770. Maximum Number of Jumps to Reach the Last Index
Max steps to reach end by jumps n[j]-n[i] in -t..t
09.05.2026
medium1914. Cyclically Rotating a Grid
Rotate matix layers by k
08.05.2026
medium3629. Minimum Jumps to Reach End via Prime Teleportation
Shortest path by prime factors
07.05.2026
medium3660. Jump Game IX
Max on path jumping left-up and right-down
06.05.2026
medium1861. Rotating the Box
Rotate and simulate gravity in matrix
05.05.2026
medium61. Rotate List
Rotate linked list k steps
04.05.2026
medium48. Rotate Image
Rotate square matrix
03.05.2026
easy796. Rotate String
Match strings after rotation
02.05.2026
medium788. Rotated Digits
Count numbers in 0..n with mirrored digits 2-5 6-9, 0,1,8, but not 3,4,7
01.05.2026
medium396. Rotate Function
Max rolling hash
30.04.2026
medium3742. Maximum Path Score in a Grid
Max right-bottom path value with at most k cost
29.04.2026
hard3225. Maximum Score From Grid Operations
Max sum adjacent to marked columns
28.04.2026
medium2033. Minimum Operations to Make a Uni-Value Grid
Min ops to make all numbers equal by +-X
27.04.2026
medium1391. Check if There is a Valid Path in a Grid
Path 0 to end on type-cells 2D grid
26.04.2026
medium1559. Detect Cycles in 2D Grid
Check cycle in 2D grid
25.04.2026
hard3464. Maximize the Distance Between Points on a Square
Max of minimum distnace between selected k points on square perimeter
24.04.2026
easy2833. Furthest Point From Origin
Max dist when replace with L or R
23.04.2026
medium2615. Sum of Distances
Sum of distances to each occurance
22.04.2026
medium2452. Words Within Two Edits of Dictionary
Words in dictionary with 2 edits
21.04.2026
medium1722. Minimize Hamming Distance After Swap Operations
Diff src vs target after rearrange by rules
20.04.2026
easy2078. Two Furthest Houses With Different Colors
Max distance between different numbers
19.04.2026
medium1855. Maximum Distance Between a Pair of Values
Max distance a[i] not greater than b[j] window
18.04.2026
easy3783. Mirror Distance of an Integer
Diff with reversal
17.04.2026
medium3761. Minimum Absolute Distance Between Mirror Pairs
Distance to prev mirror number
16.04.2026
medium3488. Closest Equal Element Queries
Shortest distances to the same values
15.04.2026
easy2515. Shortest Distance to Target String in a Circular Array
Distance to target
14.04.2026
hard2463. Minimum Total Distance Traveled
Shortest distances to travel robots to factories
13.04.2026
easy1848. Minimum Distance to the Target Element
Distance to target from start
12.04.2026
hard1320. Minimum Distance to Type a Word Using Two Fingers
Min travel on keyboard to type a word
11.04.2026
medium3741. Minimum Distance Between Three Equal Elements II
Min sum of distances between i,j,k of the same values
10.04.2026
easy3740. Minimum Distance Between Three Equal Elements I
Min sum of distances between i,j,k of the same values
09.04.2026
hard3655. XOR After Range Multiplication Queries II
Run stepped multiplication queries
08.04.2026
medium3653. XOR After Range Multiplication Queries I
Run queries
07.04.2026
medium2069. Walking Robot Simulation II
Implement perimeter-robot
06.04.2026
medium874. Walking Robot Simulation
Farthest robot movement
05.04.2026
easy657. Robot Return to Origin
R,L,U,D return to 0 in XY plane
04.04.2026
medium2075. Decode the Slanted Ciphertext
Decode row-encoded string
03.04.2026
hard3661. Maximum Walls Destroyed by Robots
Max walls hit, each robot shoot left or right
02.04.2026
medium3418. Maximum Amount of Money Robot Can Earn
Max sum path, 2 skips allowed
01.04.2026
hard2751. Robot Collisions
Collide LR robots
31.03.2026
hard3474. Lexicographically Smallest Generated String
String from pattern matches
30.03.2026
medium2840. Check if Strings Can be Made Equal With Operations II
Strings equal at odd-even positions
29.03.2026
easy2839. Check if Strings Can be Made Equal With Operations I
Match a and b at (0|2,1|3) positions
28.03.2026
hard2573. Find the String with LCP
Build string from longest common prefixes matrix
27.03.2026
easy2946. Matrix Similarity After Cyclic Shifts
Shift rows k times left and right
26.03.2026
hard3548. Equal Sum Grid Partition II
Cut matrix in half sums, can remove one cell
25.03.2026
medium3546. Equal Sum Grid Partition I
Split matrix to equal sums
24.03.2026
medium2906. Construct Product Matrix
Product of other cells in a matrix
23.03.2026
medium1594. Maximum Non Negative Product in a Matrix
Max product path right-down
22.03.2026
easy1886. Determine Whether Matrix Can Be Obtained By Rotation
Rotate matrix
21.03.2026
medium3643. Flip Square Submatrix Vertically
Reverse submatrix k by k
20.03.2026
medium3567. Minimum Absolute Difference in Sliding Submatrix
Mid diffs in k k submatrices
19.03.2026
medium3212. Count Submatrices With Equal Frequency of X and Y
Count prefix freq X == freq Y
18.03.2026
medium3070. Count Submatrices with Top-Left Element and Sum Less Than k
Count prefix sums less than K
17.03.2026
medium1727. Largest Submatrix With Rearrangements
Max area of binary matrix, swap columns
16.03.2026
medium1878. Get Biggest Three Rhombus Sums in a Grid
Top 3 rhombus sums
15.03.2026
hard1622. Fancy Sequence
Design: add number, mulriply all, add all
14.03.2026
medium1415. The k-th Lexicographical String of All Happy Strings of Length n
K-th generated abc non-repeating string
13.03.2026
medium3296. Minimum Number of Seconds to Make Mountain Height Zero
Min steps to work a mountain with arithmetic-sum-workers
12.03.2026
hard3600. Maximize Spanning Tree Stability with Upgrades
Max of min values in span tree of graph, 2 s at most k
11.03.2026
easy1009. Complement of Base 10 Integer
Invert binary
10.03.2026
hard3130. Find All Possible Stable Binary Arrays II
array to make with z zeros, o ones, l repeats
09.03.2026
medium3129. Find All Possible Stable Binary Arrays I
Count 01-arrays with z zeros, o ones, at most l repeat
08.03.2026
medium1980. Find Unique Binary String
Uniq bits not in a set
07.03.2026
medium1888. Minimum Number of Flips to Make the Binary String Alternating
Min flips to make 01 alterating string sum window
06.03.2026
easy1784. Check if Binary String Has at Most One Segment of Ones
+0 pattern
05.03.2026
easy1758. Minimum Changes To Make Alternating Binary String
Min flips to make bits alterating
04.08.2026
easy1582. Special Positions in a Binary Matrix
Count single 1-row-column
03.03.2026
medium1545. Find Kth Bit in Nth Binary String
Kth bit in s=s+1+inv(rev(s)) sequence
02.03.2026
medium1536. Minimum Swaps to Arrange a Binary Grid
Min rows swaps to zero above diagonal
01.03.2026
medium1689. Partitioning Into Minimum Number Of Deci-Binary Numbers
Min 01-strings add up to target
28.02.2026
medium1680. Concatenation of Consecutive Binary Numbers
Concat binaries 1..n
27.02.2026
hard3666. Minimum Operations to Equalize Binary String
Min steps to convert 01 stirng to ones flipping K
26.02.2026
medium1404. Number of Steps to Reduce a Number in Binary Representation to One
Ops /2+1 to make 1
25.02.2026
easy1356. Sort Integers by The Number of 1 Bits
Sort
24.02.2026
easy1022. Sum of Root To Leaf Binary Numbers
Sum of a binary numbers in a binary tree
23.02.2026
medium1461. Check If a String Contains All Binary Codes of Size K
All numbers as substring length of k window
22.02.2026
easy868. Binary Gap
Distance between onces in a binary
21.02.2026
easy762. Prime Number of Set Bits in Binary Representation
Number in l..r with prime bits count
20.02.2026
hard761. Special Binary String
Swaps of 1M0-special substring to make string large
19.02.2026
easy696. Count Binary Substrings
Count substrings of 01 and 10 window
18.02.2026
easy693. Binary Number with Alternating Bits
Alternating bits
17.02.2026
easy401. Binary Watch
All times with count bits set
16.02.2026
easy190. Reverse Bits
Reverse bits
15.02.2026
easy67. Add Binary
Binary strings sum
14.02.2026
medium799. Champagne Tower
Flow in a Pascal's Triangle
13.02.2026
medium3714. Longest Balanced Substring II
Largest equal frequencies substring of abc-string
12.02.2026
medium3713. Longest Balanced Substring I
Max substring with equal frequencies window
11.02.2026
hard3721. Longest Balanced Subarray II
Max subarray evens count = odds count tree
10.02.2026
medium3719. Longest Balanced Subarray I
Longes even=odd subarray
09.02.2026
medium1382. Balance a Binary Search Tree
Balance binary search tree
08.02.2026
easy110. Balanced Binary Tree
Is tree balanced?
07.02.2026
medium1653. Minimum Deletions to Make String Balanced
Min removal to balance 'ab'
06.02.2026
medium3634. Minimum Removals to Balance Array
Min removals to make min k not less than max window
05.02.2026
easy3379. Transformed Array
Shuffled list i+n[i]
03.02.2026
easy3637. Trionic Array I
Validate inc,dec,inc sequency
02.02.2026
hard3013. Divide an Array Into Subarrays With Minimum Cost II
Min sum of k splits at max d distance window
01.02.2026
easy3010. Divide an Array Into Subarrays With Minimum Cost I
Split on 2 min values
31.01.2026
easy744. Find Smallest Letter Greater Than Target
Larger letter in array
30.01.2026
hard2977. Minimum Cost to Convert String II
Min cost to convert string with transitions of substrings
29.01.2026
medium2976. Minimum Cost to Convert String I
Min cost to convert string
28.01.2026
hard3651. Minimum Cost Path with Teleportations
Min cost to walk 2D grid with free teleports
27.01.2026
medium3650. Minimum Cost Path with Edge Reversals
Min path in weighted graph with reverse 2w nodes
26.01.2026
easy1200. Minimum Absolute Difference
Min diff pairs
25.01.2026
easy1984. Minimum Difference Between Highest and Lowest of K Scores
Min k-diff window
24.01.2026
medium1877. Minimize Maximum Pair Sum in Array
Min max pair
23.01.2026
hard3510. Minimum Pair Removal to Sort Array II
Sort by removing min-sum pairs
22.01.2026
easy3507. Minimum Pair Removal to Sort Array I
Sort by removing lowest sum pairs
21.01.2026
medium3315. Construct the Minimum Bitwise Array II
Reverse operation x or (x+1)
20.01.2026
easy3314. Construct the Minimum Bitwise Array I
Reverse x | (x+1) operation on prime numbers
19.01.2025
medium1292. Maximum Side Length of a Square with Sum Less than or Equal to Threshold
Max square with sum less than threshold
18.01.2026
medium1895. Largest Magic Square
Max magic square
17.01.2026
medium3047. Find the Largest Area of Square Inside Two Rectangles
Max square in intersection
16.01.2026
medium2975. Maximum Square Area by Removing Fences From a Field
Max square after remove vertical or horizontal bars
15.01.2026
medium2943. Maximize Area of Square Hole in Grid
Max square area after removing bars in a grid
14.01.2026
hard3454. Separate Squares II
Min y to equal split areas exclude intersections sweep
No matching entries
Try fewer terms, remove one filter, or reset the archive.