LeetCode Collection
Almost Gave Up
Entries with minute markers near the stopping point, hints, wrong answers, or explicit timeboxing.
55 entries
Focused gallery for this signal, ordered by the strongest matching metric.
12.07.2025
hard1900. The Earliest and Latest Rounds Where Players Compete
First and last round Alice fight Bob
21.08.2024
hard664. Strange Printer
Minimum continuous replacements to make a string programming
29.09.2025
medium1039. Minimum Score Triangulation of Polygon
Min sum of triangle product for every possible triangulation
11.06.2025
hard3445. Maximum Difference Between Even and Odd Frequency II
Max odd - min even frequency, window at least k
09.05.2025
hard3343. Count Number of Balanced Permutations
Permutations of even-odd position sums equal
31.05.2025
medium909. Snakes and Ladders
Shortest path bottom-top in zig-zag matrix with jumps
21.10.2025
medium3346. Maximum Frequency of an Element After Performing Operations I
Max frequency after changing +k..-k ops elements window
25.04.2026
hard3464. Maximize the Distance Between Points on a Square
Max of minimum distnace between selected k points on square perimeter
27.02.2026
hard3666. Minimum Operations to Equalize Binary String
Min steps to convert 01 stirng to ones flipping K
12.03.2026
hard3600. Maximize Spanning Tree Stability with Upgrades
Max of min values in span tree of graph, 2 s at most k
06.06.2025
medium2434. Using a Robot to Print the Lexicographically Smallest String
Smallest string by writing to stack
06.12.2025
medium3578. Count Partitions With Max-Min Difference at Most K
Ways to partition into parts (max-min) at most k queue
25.02.2025
medium1524. Number of Sub-arrays With Odd Sum
Count odd sum subarrays sum
14.05.2025
hard3337. Total Characters in String After Transformations II
t steps to convert char into next nums[c] chars
01.05.2025
hard2071. Maximum Number of Tasks You Can Assign
Tasks can be done by workers with pills search
17.06.2025
hard3405. Count the Number of Arrays with K Matching Adjacent Elements
Combinations k equal siblings 1..m in [n] array
30.10.2024
hard1671. Minimum Number of Removals to Make Mountain Array
Min removes to make a mountain programming search
13.03.2025
medium3356. Zero Array Transformation II
Min queries (l..r, v) to decrease nums by v to 0 sweep
28.12.2024
hard689. Maximum Sum of 3 Non-Overlapping Subarrays
max non-intersecting intervals programming window
17.11.2024
hard862. Shortest Subarray with Sum at Least K
Min subarray with sum at least k queue
19.05.2024
hard3068. Find the Maximum Sum of Node Values
Max sum after xor k any edges in a tree
09.02.2024
medium368. Largest Divisible Subset
Longest subset of divisible by s[i] % s[j] == 0 || s[j] % s[i] == 0.
6.01.2024
hard1235. Maximum Profit in Job Scheduling
Max profit in non-intersecting jobs given startTime[], endTime[] and profit[].
09.04.2026
hard3655. XOR After Range Multiplication Queries II
Run stepped multiplication queries
17.10.2025
medium3003. Maximize the Number of Partitions After Operations
Max k-uniq parts after changing one letter
13.06.2025
medium2616. Minimize the Maximum Difference of Pairs
Min max diffs non-overlapped pairs search
12.10.2025
medium3539. Find Sum of Array Product of Magical Sequences
Product of all good subsequences and permutations
11.10.2025
medium3186. Maximum Total Damage With Spell Casting
Max sum of choosen values, skip v[i]+1+2-1-2
23.05.2025
hard3068. Find the Maximum Sum of Node Values
Max sum by k-xoring edges
09.06.2025
hard440. K-th Smallest in Lexicographical Order
k-th lexicographical number of 1..n
24.07.2025
hard2322. Minimum Score After Removals on a Tree
Min(max group xor - min group xor) by removing 2 edges from tree
02.02.2026
hard3013. Divide an Array Into Subarrays With Minimum Cost II
Min sum of k splits at max d distance window
13.01.2026
medium3453. Separate Squares I
Min Y to split into equal areas
08.11.2025
hard1611. Minimum One Bit Operations to Make Integers Zero
Min steps to make zero by xor 1 or xor rightmost+1
06.09.2025
hard3495. Minimum Operations to Make Array Elements Zero
Sum query [a..b] of optimal pairwise /4 until range is zero
2.07.2025
hard3333. Find the Original Typed String II
ways to remove duplicates, preserve length at least k
13.02.2026
medium3714. Longest Balanced Substring II
Largest equal frequencies substring of abc-string
24.09.2025
medium166. Fraction to Recurring Decimal
Calc a/b to string x.y(z)
28.03.2026
hard2573. Find the String with LCP
Build string from longest common prefixes matrix
15.03.2026
hard1622. Fancy Sequence
Design: add number, mulriply all, add all
26.07.2025
hard3480. Maximize Subarrays After Removing One Conflicting Pair
Max subarrays count without excluded pairs-1 sweep
02.12.2025
medium3623. Count Number of Trapezoids I
Trapezoids count
30.11.2025
medium1590. Make Sum Divisible by P
Min removal to make sum%p
15.11.2025
medium3234. Count the Number of Substrings With Dominant Ones
Subarray zeros^2 less than ones window
20.02.2026
hard761. Special Binary String
Swaps of 1M0-special substring to make string large
01.12.2025
hard2141. Maximum Running Time of N Computers
Max time to run n computers with batteries
16.12.2025
hard3562. Maximum Profit from Trading Stocks with Discounts
Max profit in a tree
14.04.2026
hard2463. Minimum Total Distance Traveled
Shortest distances to travel robots to factories
31.10.2024
hard2463. Minimum Total Distance Traveled
Min robots[x] travel to factories[x,capacity] programming
2.08.2025
hard2561. Rearranging Fruits
Min swaps cost to make a==b
23.10.2025
medium1262. Greatest Sum Divisible by Three
Max sum that %3
22.12.2025
hard960. Delete Columns to Make Sorted III
Remove columns to sort strings
03.04.2026
hard3661. Maximum Walls Destroyed by Robots
Max walls hit, each robot shoot left or right
04.12.2025
medium1390. Four Divisors
Sum of exactly four-divisors of each number
14.01.2026
hard3454. Separate Squares II
Min y to equal split areas exclude intersections sweep