Year
2025 archive
A year-sized slice of the daily archive, ordered newest first.
365 entries
365 entries from 2025.
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
04.12.2025
medium1390. Four Divisors
Sum of exactly four-divisors of each number
31.12.2025
hard1970. Last Day Where You Can Still Cross
Last day top connected to bottom in 2D matrix
30.12.2025
medium840. Magic Squares In Grid
Count 'magic' 3x3 squares
29.12.2025
medium756. Pyramid Transition Matrix
Can build a pyramid from transitions?
28.12.2025
easy1351. Count Negative Numbers in a Sorted Matrix
Count negatives in 2D sorted matrix
27.12.2025
hard2402. Meeting Rooms III
Most frequent room 0..n for meetings [s,e]
26.12.2025
medium2483. Minimum Penalty for a Shop
Min close time by customers max volune
25.12.2025
medium3075. Maximize Happiness of Selected Children
K max values, decreas each pick
24.12.2025
easy3074. Apple Redistribution into Boxes
Min containers for all apples sort
23.12.2025
medium2054. Two Best Non-Overlapping Events
Max at most two non-overlapping events max
22.12.2025
hard960. Delete Columns to Make Sorted III
Remove columns to sort strings
21.12.2025
medium955. Delete Columns to Make Sorted II
Remove columns to sort strings
20.12.2025
easy944. Delete Columns to Make Sorted
Count unsorted columns
19.12.2025
hard2092. Find All People With Secret
Time based secret spread in a graph
18.12.2025
medium3652. Best Time to Buy and Sell Stock using Strategy
Max Profit by modifying a sliding window sum
17.12.2025
medium3573. Best Time to Buy and Sell Stock V
K best deals buy/short/sell stocks
16.12.2025
hard3562. Maximum Profit from Trading Stocks with Discounts
Max profit in a tree
15.12.2025
medium2110. Number of Smooth Descent Periods of a Stock
Decreasing subarrays
14.12.2025
hard2147. Number of Ways to Divide a Long Corridor
Ways to split pairs of S
13.12.2025
easy3606. Coupon Code Validator
Filter a,b,c accroding to rules
12.12.2025
medium3433. Count Mentions Per User
Count messages and track online users
11.12.2025
medium3531. Count Covered Buildings
Count surrounded dots on XY plane
10.12.2025
medium3577. Count the Number of Computer Unlocking Permutations
Permutations to unlock all c[j] right and bigger than c[i]
09.12.2025
medium3583. Count Special Triplets
Count a[i]==a[j] 2==a[k] sum
08.12.2025
easy1925. Count Square Sum Triples
Count a^2+b^2=c^2 in 1..n range
07.12.2025
easy1523. Count Odd Numbers in an Interval Range
Odds l..h
06.12.2025
medium3578. Count Partitions With Max-Min Difference at Most K
Ways to partition into parts (max-min) at most k queue
05.12.2025
easy3432. Count Partitions with Even Sum Difference
Count Left sum - Right sum % 2
04.12.2025
medium2211. Count Collisions on a Road
Collisions R vs L
03.12.2025
hard3625. Count Number of Trapezoids II
Count trapezoids from points
02.12.2025
medium3623. Count Number of Trapezoids I
Trapezoids count
01.12.2025
hard2141. Maximum Running Time of N Computers
Max time to run n computers with batteries
30.11.2025
medium1590. Make Sum Divisible by P
Min removal to make sum%p
29.11.2025
easy3512. Minimum Operations to Make Array Sum Divisible by K
Sum % k
28.11.2025
hard2872. Maximum Number of K-Divisible Components
Max cuts where every subtree sum %k
27.11.2025
medium3381. Maximum Subarray Sum With Length Divisible by K
Max sum of %k-length subarray
26.11.2025
hard2435. Paths in Matrix Whose Sum Is Divisible by K
Paths in 2D matrix %k
25.11.2025
medium1015. Smallest Integer Divisible by K
Smallest number 11..1 % k
24.11.2025
easy1018. Binary Prefix Divisible By 5
Prefixes divisible by 5
23.10.2025
medium1262. Greatest Sum Divisible by Three
Max sum that %3
22.11.2025
easy3190. Find Minimum Operations to Make All Elements Divisible by Three
Min steps inc/dec to make %3
21.11.2025
medium1930. Unique Length-3 Palindromic Subsequences
palindroms subsequences
20.11.2025
hard757. Set Intersection Size At Least Two
Min set each interval have two values in it
19.11.2025
easy2154. Keep Multiplying Found Values by Two
First original=original 2 not in array
18.11.2025
easy717. 1-bit and 2-bit Characters
Is '0' last from characters '0','10','11' concatenation
17.11.2025
easy1437. Check If All 1's Are at Least Length K Places Away
All ones k-distant
16.11.2025
medium1513. Number of Substrings With Only 1s
Substrings of ones
15.11.2025
medium3234. Count the Number of Substrings With Dominant Ones
Subarray zeros^2 less than ones window
14.11.2025
medium2536. Increment Submatrices by One
Increase matrix by query of rectangles of ones
13.11.2025
medium3228. Maximum Number of Operations to Move Ones to the End
Max steps to move all ones to the right
12.11.2025
medium2654. Minimum Number of Operations to Make All Array Elements Equal to 1
Min steps to make all '1' by gcd
11.11.2025
medium474. Ones and Zeroes
Longest subsequence (ones,zeros) at most (m,n)
10.11.2025
medium3542. Minimum Operations to Convert All Elements to Zero
Min ops to zeros by making min of subarrays 0 stack
09.11.2025
easy2169. Count Operations to Obtain Zero
Count numbers subtractions until 0
08.11.2025
hard1611. Minimum One Bit Operations to Make Integers Zero
Min steps to make zero by xor 1 or xor rightmost+1
07.11.2025
hard2528. Maximize the Minimum Powered City
Max min r-range sum after adding total of k window
06.11.2025
medium3607. Power Grid Maintenance
Smallest in subgraph after turning some nodes off
05.11.2025
hard3321. Find X-Sum of All K-Long Subarrays II
Sums of x most frequent from k-windows
04.11.2025
easy3318. Find X-Sum of All K-Long Subarrays I
Sums of x most frequent from k-windows
03.11.2025
medium1578. Minimum Time to Make Rope Colorful
Min weighted removals to dedup
02.11.2025
medium2257. Count Unguarded Cells in the Grid
Count unseen cells by rays from guards
01.11.2025
medium3217. Delete Nodes From Linked List Present in Array
Remove an array from linked list
31.10.2025
easy3289. The Two Sneaky Numbers of Digitville
Two extra numbers from 0..n
30.10.2025
hard1526. Minimum Number of Increments on Subarrays to Form a Target Array
Min +1 range increases to make target from zeros
29.10.2025
easyWith All Set Bits
Next all bits set number
28.10.2025
easy3354. Make Array Elements Equal to Zero
Places & directions that lead the simulation to all zeros
27.10.2025
medium2125. Number of Laser Beams in a Bank
Count multiplications between rows
26.10.2025
medium2043. Simple Bank System
Design a bank
25.10.2025
easy1716. Calculate Money in Leetcode Bank
Add increasing sum of money, drop weekly gain on mondays
24.10.2025
medium2048. Next Greater Numerically Balanced Number
First bigger number freq[digit]=digit
23.10.2025
easy3461. Check If Digits Are Equal in String After Operations I
Fold each pair to (a+b)%10 until 2 left
22.10.2025
hard3347. Maximum Frequency of an Element After Performing Operations II
Max frequency after changing +k..-k ops elements window
21.10.2025
medium3346. Maximum Frequency of an Element After Performing Operations I
Max frequency after changing +k..-k ops elements window
20.10.2025
easy2011. Final Value of Variable After Performing Operations
do ++ or -- operation from 0
19.10.2025
medium1625. Lexicographically Smallest String After Applying Operations
Min string after shifting by b and rotating odd indice by a
18.10.2025
medium3397. Maximum Number of Distinct Elements After Operations
Distincts count after adding -k..k to each
17.10.2025
medium3003. Maximize the Number of Partitions After Operations
Max k-uniq parts after changing one letter
16.10.2025
medium2598. Smallest Missing Non-negative Integer After Operations
First positive number can't be build by adding/subtracting value
15.10.2025
medium3350. Adjacent Increasing Subarrays Detection II
Max k of adjucent increasing k-windows
14.10.2025
medium3349. Adjacent Increasing Subarrays Detection I
Any increasing consequent windows size k
13.10.2025
medium2273. Find Resultant Array After Removing Anagrams
Dedup anagrams
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
10.10.2025
medium3147. Taking Maximum Energy From the Mystic Dungeon
Max k-distant suffix sum
09.10.2025
medium3494. Find the Minimum Amount of Time to Brew Potions
Min total time to finish all skills[i] mana[j], non-intersecting
08.10.2025
medium2300. Successful Pairs of Spells and Potions
Number of potions spells[i] bigger than success
07.10.2025
medium1488. Avoid Flood in The City
Replace zeros with numbers to avoid duplicates search
06.10.2025
hard778. Swim in Rising Water
Min time to swim to end, flooding every second
05.10.2025
medium417. Pacific Atlantic Water Flow
Cells travel to TL&BR in decrease order
04.10.2025
medium11. Container With Most Water
Max water container from two heights
03.10.2025
hard407. Trapping Rain Water II
Fill water in 3D
02.10.2025
medium3100. Water Bottles II
Total drinks with growing exchange rate empty for full
01.10.2025
easy1518. Water Bottles
Total drinks with exchange empty for full
30.09.2025
medium2221. Find Triangular Sum of an Array
Triangle sum % 10
29.09.2025
medium1039. Minimum Score Triangulation of Polygon
Min sum of triangle product for every possible triangulation
28.09.2025
easy976. Largest Perimeter Triangle
Max triangle perimeter from array of lengths window
27.09.2025
easy812. Largest Triangle Area
Max area triangle
26.09.2025
medium611. Valid Triangle Number
Count triangles can be made from numbers search sum
25.09.2025
medium120. Triangle
Min path sum in triangle
24.09.2025
medium166. Fraction to Recurring Decimal
Calc a/b to string x.y(z)
23.09.2025
medium165. Compare Version Numbers
Compare versions x.x.x.x
22.09.2025
easy3005. Count Elements With Maximum Frequency
Count max-freq elements
21.09.2025
medium1912. Design Movie Rental System
Design Movie Rent: rent,drop,search(5 lowest), report(5 lowest rented)
20.09.2025
medium3508. Implement Router
Design Router: addPacket, forwardPacket, getCount(dst, ts start..end)
19.09.2025
medium3484. Design Spreadsheet
Design Spreadsheet: setCell, resetCell, getValue(a+b)
18.09.2025
medium3408. Design Task Manager
Design Scheduler: add, edit, remove, execute by priority
17.09.2025
medium2353. Design a Food Rating System
Food rating system: change rating, peek highest by type
16.09.2025
hard2197. Replace Non-Coprime Numbers in Array
Simulate gcd to lcm adjacent pair removal
15.09.2025
easy1935. Maximum Number of Words You Can Type
Count words with all letters
14.09.2025
medium966. Vowel Spellchecker
Spellcheck with priority: original, case, vowels
13.09.2025
easy3541. Find Most Frequent Vowel and Consonant
Max freq vowels + consonants
12.09.2025
medium3227. Vowels Game in a String
Can Alice win Bob both removeing odd-even vowel count substring optimally
11.09.2025
medium2785. Sort Vowels in a String
Sort vowels
10.09.2025
medium1733. Minimum Number of People to Teach
Min friends to teach common language to communicate in graph
09.09.2025
medium2327. Number of People Aware of a Secret
People knowing a secret at day n, keeping delay then spread and forget
08.09.2025
easy1317. Convert Integer to the Sum of Two No-Zero Integers
Find a+b=n without zeros in digits
07.09.2025
easy1304. Find N Unique Integers Sum up to Zero
Any n uniq numbers with sum of 0
06.09.2025
hard3495. Minimum Operations to Make Array Elements Zero
Sum query [a..b] of optimal pairwise /4 until range is zero
05.09.2025
medium2749. Minimum Operations to Make the Integer Zero
Min ops to subtract n2+2^(0..60) from n1 and make n1=0
04.09.2025
easy3516. Find Closest Person
Compare two distances
03.09.2025
hard3027. Find the Number of Ways to Place People II
Left-top, bottom-right pairs with empty rectangles
02.09.2025
medium3025. Find the Number of Ways to Place People I
Left-top, bottom-right pairs with empty rectangles
01.09.2025
medium1792. Maximum Average Pass Ratio
Max avg ratio after assigning extra to ratios
31.08.2025
hard37. Sudoku Solver
Solve sudoku
30.08.2025
medium36. Valid Sudoku
Validate sudoku has no duplicates
29.08.2025
medium3021. Alice and Bob Playing Flower Game
Pairs x=1..n y=1..m for Alice to win in take from (x+y) game
28.08.2025
medium3446. Sort Matrix by Diagonals
Sort bottom left and top right diagonals
27.08.2025
hard3459. Length of Longest V-Shaped Diagonal Segment
Max length of 1-2-0-2.. diagonal sequence, on cw rotation
26.08.2025
medium3000. Maximum Area of Longest Diagonal Rectangle
Max area of max diagonal rectangles
25.08.2025
medium498. Diagonal Traverse
Matrix diagonal traversal
24.08.2025
medium1493. Longest Subarray of 1's After Deleting One Element
Max 1-subarray after removing one elemnt pointers
23.08.2025
hard3197. Find the Minimum Area to Cover All Ones II
Min sum all-1 areas of 3-split
22.08.2025
medium3195. Find the Minimum Area to Cover All Ones I
Min all-1 rectangle
21.08.2025
medium1504. Count Submatrices With All Ones
Count islands of 1
20.08.2025
medium1277. Count Square Submatrices with All Ones
Count square islands of 1
19.08.2025
medium2348. Number of Zero-Filled Subarrays
Count 0-subarrays
18.08.2025
hard679. 24 Game
Can a,b,c,d = 24 with ops /+-()
17.08.2025
medium837. New 21 Game
Probability sum of random(1..m) less than n when stop adding at k
16.08.2025
easy1323. Maximum 69 Number
Bigger number by replacing 6 to 9
15.08.2025
easy342. Power of Four
Is number power of 4?
14.08.2025
easy2264. Largest 3-Same-Digit Number in String
Max 3-digit in string
13.08.2025
easy326. Power of Three
Is n power of 3?
12.08.2025
medium2787. Ways to Express an Integer as Sum of Powers
Ways to make n by sum of a^x+b^x+...
11.08.2025
medium2438. Range Product Queries of Powers
Range product queries of powers of two from n
10.08.2025
medium869. Reordered Power of 2
Rearrange digits to make power of two
9.08.2025
easy231. Power of Two
Is int 32 power of 2?
8.08.2025
medium808. Soup Servings
Probability A empty first plus both empty /2
7.08.2025
hard3363. Find the Maximum Number of Fruits Collected
Max 3 paths from corners to bottom end
6.08.2025
medium3479. Fruits Into Baskets III
Place fruits left to right to first available bucket tree
5.08.2025
easy3477. Fruits Into Baskets II
Place fruits left to right to first available bucket
4.08.2025
medium904. Fruit Into Baskets
Max consequent two-types range
3.08.2025
hard2106. Maximum Fruits Harvested After at Most K Steps
Max values k steps from start point window
2.08.2025
hard2561. Rearranging Fruits
Min swaps cost to make a==b
1.08.2025
easy118. Pascal's Triangle
Pascal's Triangle
31.07.2025
medium898. Bitwise ORs of Subarrays
Uniq OR-subarrays
30.07.2025
medium2419. Longest Subarray With Maximum Bitwise AND
Longest max OR subarray
29.07.2025
medium2411. Smallest Subarrays With Maximum Bitwise OR
Shortest max OR i.. subarrays pointers
28.07.2025
medium2044. Count Number of Maximum Bitwise-OR Subsets
Subsequencies with max OR
27.07.2025
easy2210. Count Hills and Valleys in an Array
Count hills and valleys
26.07.2025
hard3480. Maximize Subarrays After Removing One Conflicting Pair
Max subarrays count without excluded pairs-1 sweep
25.07.2025
easy3487. Maximum Unique Subarray Sum After Deletion
Max non-empty uniq subsequence sum
24.07.2025
hard2322. Minimum Score After Removals on a Tree
Min(max group xor - min group xor) by removing 2 edges from tree
23.07.2025
medium1717. Maximum Score From Removing Substrings
Max removals ab=x, ba=y
22.07.2025
medium1695. Maximum Erasure Value
Max unique subarray sum window
21.07.2025
easy1957. Delete Characters to Make Fancy String
No three chars repeats
20.07.2025
hard1948. Delete Duplicate Folders in System
Remove duplicate folder trees
19.07.2025
hard1233. Remove Sub-Folders from the Filesystem
Fold folders
18.07.2025
hard2163. Minimum Difference in Sums After Removal of Elements
Min first half - second half after removing n/3
17.07.2025
medium3202. Find the Maximum Length of Valid Subsequence II
Longest same-pair-k-parity subsequence
16.07.2025
medium3201. Find the Maximum Length of Valid Subsequence I
Longest same-pair-parity subsequence
14.07.2025
easy1290. Convert Binary Number in a Linked List to Integer
Binary linked list to decimal
13.07.2025
medium2410. Maximum Matching of Players With Trainers
Count trainers for players
12.07.2025
hard1900. The Earliest and Latest Rounds Where Players Compete
First and last round Alice fight Bob
11.07.2025
hard2402. Meeting Rooms III
Most frequent meeting room
10.07.2025
medium3440. Reschedule Meetings for Maximum Free Time II
Max free time after moving 1 event
9.07.2025
medium3439. Reschedule Meetings for Maximum Free Time I
Max free time after moving k events together window
8.07.2025
hard1751. Maximum Number of Events That Can Be Attended II
Max top k valued intervals search
7.07.2025
medium1353. Maximum Number of Events That Can Be Attended
Max attended events
6.07.2025
medium1865. Finding Pairs With a Certain Sum
Design pairs counter; two lists, one changes
5.07.2025
easy1394. Find Lucky Integer in an Array
Max x == freq(x)
4.07.2025
hard3307. Find the K-th Character in String Game II
kth char in double+shift by ops[i] string manipulation
3.07.2025
easy3304. Find the K-th Character in String Game I
kth char after appending rotated self
2.07.2025
hard3333. Find the Original Typed String II
ways to remove duplicates, preserve length at least k
30.06.2025
easy594. Longest Harmonious Subsequence
Longest subsequence with max-min=1 pointers
29.06.2025
medium1498. Number of Subsequences That Satisfy the Given Sum Condition
Subsequencies target in 0..min+max search pointers
28.06.2025
easy2099. Find Subsequence of Length K With the Largest Sum
Subsequence of k largest
27.06.2025
hard2014. Longest Subsequence Repeated k Times
Longest k-repeating subsequence
26.06.2025
medium2311. Longest Binary Subsequence Less Than or Equal to K
Longest binary subsequence less than K
25.06.2025
hard2040. Kth Smallest Product of Two Sorted Arrays
K-th increasing product from two arrays search
24.06.2025
easy2200. Find All K-Distant Indices in an Array
Indices k-distant to key
23.06.2025
hard2081. Sum of k-Mirror Numbers
n palindromes in both 10 and k-base
22.06.2025
easy2138. Divide a String Into Groups of Size k
k-chunked string, filled tail
21.06.2025
medium3085. Minimum Deletions to Make String K-Special
Min remove to make frequencies k-narrow
20.06.2025
medium3443. Maximum Manhattan Distance After K Changes
Max distance after k flips
19.06.2025
medium2294. Partition Array Such That Maximum Difference Is K
k-narrow subsequences
18.06.2025
medium2966. Divide Array Into Arrays With Max Difference
List of k-narrow tripplets
17.06.2025
hard3405. Count the Number of Arrays with K Matching Adjacent Elements
Combinations k equal siblings 1..m in [n] array
16.06.2025
easy2016. Maximum Difference Between Increasing Elements
Max increasing pair diff
15.06.2025
medium1432. Max Difference You Can Get From Changing an Integer
Max - min, replacing any digit, no leading zeros
14.06.2025
easy2566. Maximum Difference by Remapping a Digit
Max - min, replacing any digit
13.06.2025
medium2616. Minimize the Maximum Difference of Pairs
Min max diffs non-overlapped pairs search
12.06.2025
easy3423. Maximum Difference Between Adjacent Elements in a Circular Array
Max abs sibling diff
11.06.2025
hard3445. Maximum Difference Between Even and Odd Frequency II
Max odd - min even frequency, window at least k
10.06.2025
easy3442. Maximum Difference Between Even and Odd Frequency I
Max odd - min even frequency
09.06.2025
hard440. K-th Smallest in Lexicographical Order
k-th lexicographical number of 1..n
08.06.2025
medium386. Lexicographical Numbers
Generate lexicographical numbers 1..n
07.06.2025
medium3170. Lexicographically Minimum String After Removing Stars
Smallest string by remove min to the left of
06.06.2025
medium2434. Using a Robot to Print the Lexicographically Smallest String
Smallest string by writing to stack
05.06.2025
medium1061. Lexicographically Smallest Equivalent String
Map by smallest in group from associate s1 with s2
04.06.2025
medium3403. Find the Lexicographically Largest String From the Box I
Max string of every split by n
03.06.2025
hard1298. Maximum Candies You Can Get from Boxes
Open boxes graph with keys simulation
02.06.2025
hard135. Candy
Min candies, fair siblings by ratings
01.06.2025
medium2929. Distribute Candies Among Children II
Ways to give limited from n candies to 3 kids
31.05.2025
medium909. Snakes and Ladders
Shortest path bottom-top in zig-zag matrix with jumps
30.05.2025
medium2359. Find Closest Node to Given Two Nodes
Closest common node
29.05.2025
hard3373. Maximize the Number of Target Nodes After Connecting Trees II
Max even-edged siblings after merging trees
28.05.2025
medium3372. Maximize the Number of Target Nodes After Connecting Trees I
Max k-reachable nodes of merged trees
27.05.2025
easy2894. Divisible and Non-divisible Sums Difference
Sum non-divisible minus sum divisible
26.05.2025
hard1857. Largest Color Value in a Directed Graph
Max color freq path
25.05.2025
medium2131. Longest Palindrome by Concatenating Two Letter Words
Max palindrome length from 2 char words
24.05.2025
easy2942. Find Words Containing Character
Indices with x
23.05.2025
hard3068. Find the Maximum Sum of Node Values
Max sum by k-xoring edges
22.05.2025
medium3362. Zero Array Transformation III
Max removed queries still zero-fy an array
21.05.2025
medium73. Set Matrix Zeroes
Zero-fy rows and columns
20.05.2025
medium3355. Zero Array Transformation I
Can intersecting intervals decrease an array sweep
19.05.2025
easy3024. Type of Triangle
Triangle type by lengths
18.05.2025
hard1931. Painting a Grid With Three Different Colors
Ways to 3-color m n grid, no adjucents
17.05.2025
medium75. Sort Colors
Sort 0,1,2 array pointers
16.05.2025
medium2901. Longest Unequal Adjacent Groups Subsequence II
Longest subsequence humming distance 1, alterating groups
15.05.2025
easy2900. Longest Unequal Adjacent Groups Subsequence I
Longest subsequence alterating g
14.05.2025
hard3337. Total Characters in String After Transformations II
t steps to convert char into next nums[c] chars
13.05.2025
medium3335. Total Characters in String After Transformations I
String length after t shifts c=c+1,z=ab
12.05.2025
easy2094. Finding 3-Digit Even Numbers
Triple digit even numbers from digits
11.05.2025
easy1550. Three Consecutive Odds
odds
10.05.2025
medium2918. Minimum Equal Sum of Two Arrays After Replacing Zeros
Min equal array sum, fill zeros
09.05.2025
hard3343. Count Number of Balanced Permutations
Permutations of even-odd position sums equal
08.05.2025
medium3342. Find Minimum Time to Reach Last Room II
Fastest travel in graph, alternating dt=1,2
07.05.2025
medium3341. Find Minimum Time to Reach Last Room I
Fastest path in graph
06.05.2025
easy1920. Build Array from Permutation
n[n[i]]
05.05.2025
medium790. Domino and Tromino Tiling
Ways to fill 2xn board with I,L shapes
04.05.2025
easy1128. Number of Equivalent Domino Pairs
Dominoes pairs
03.05.2025
medium1007. Minimum Domino Rotations For Equal Row
Min swaps to make a top or bottom row
02.05.2025
medium838. Push Dominoes
Dominoes simulation
01.05.2025
hard2071. Maximum Number of Tasks You Can Assign
Tasks can be done by workers with pills search
30.04.2025
easy1295. Find Numbers with Even Number of Digits
Even length numbers
29.04.2025
medium2962. Count Subarrays Where Max Element Appears at Least K Times
Subarrays at least k maxes pointers
28.04.2025
hard2302. Count Subarrays With Score Less Than K
Subarrays sum cnt <= k pointers
27.04.2025
easy3392. Count Subarrays of Length Three With a Condition
subarrays 2a + 2c == b
26.04.2025
hard2444. Count Subarrays With Fixed Bounds
Subarrays with min=minK, max=maxK pointers
25.04.2025
medium2845. Count of Interesting Subarrays
Subarrays, count a[i]%m=k is c%m=k map
24.04.2025
medium2799. Count Complete Subarrays in an Array
Subarrays having all uniqs pointers
23.04.2025
easy1399. Count Largest Group
Count of max groups by digits sum 1..n
22.04.2025
hard2338. Count the Number of Ideal Arrays
Arrays a[i] % a[i - 1] == 0, i..n, a[i]..max
21.04.2025
medium2145. Count the Hidden Sequences
Possible arrays from diff array and lo..hi
20.04.2025
medium781. Rabbits in Forest
Count total rabbits from other numbers
19.04.2025
medium2563. Count the Number of Fair Pairs
Pairs a + b in lower..upper pointers
18.04.2025
medium38. Count and Say
nth run-length encoded string
17.04.2025
easy2176. Count Equal and Divisible Pairs in an Array
Pairs a[i] == b[j], i j % k == 0
16.04.2025
medium2537. Count the Number of Good Subarrays
Subarrays with at least k equal pairs window
15.04.2025
hard2179. Count Good Triplets in an Array
Triplets in same order in both (0..n)-arrays
14.04.2025
easy1534. Count Good Triplets
Triplets with diff less than a,b,c
13.04.2025
medium1922. Count Good Numbers
Count (0,2,4,6,8)(2,3,5,7) generated strings of length n
12.04.2025
hard3272. Find the Count of Good Integers
Count palindromes of length n, divisible by k
11.04.2025
easy2843. Count Symmetric Integers
Numbers with equal half' sums
10.04.2025
hard2999. Count the Number of Powerful Integers
Numbers in range start..finish, digits up to limit
09.04.2025
easy3375. Minimum Operations to Make Array Values Equal to K
Count number bigger than k
08.04.2025
easy3396. Minimum Number of Operations to Make Elements in Array Distinct
Count removals 3-prefixes to deduplicate
07.04.2025
medium416. Partition Equal Subset Sum
Two equal sum subsets
06.04.2025
medium368. Largest Divisible Subset
Longest all pairs divisible subset
05.04.2025
easy1863. Sum of All Subset XOR Totals
Sum of all subsets xors
04.04.2025
medium1123. Lowest Common Ancestor of Deepest Leaves
Lowest common ancestor of deepest tree nodes
03.04.2025
medium2874. Maximum Value of an Ordered Triplet II
Max (a[i] - a[j]) a[k]
02.04.2025
easy2873. Maximum Value of an Ordered Triplet I
Max (a[i] - a[j]) a[k]
01.04.2025
medium2140. Solving Questions With Brainpower
Max sum of (points, skip next) pairs
31.03.2025
hard2551. Put Marbles in Bags
Max split sum - min split sum of borders
30.03.2025
medium763. Partition Labels
Split string into separate chars sets
29.03.2025
hard2818. Apply Operations to Maximize Score
Multiply k numbers with max prime factor count stack
28.03.2025
hard2503. Maximum Number of Points From Grid Queries
Running queries of increasing BFS
27.03.2025
medium2780. Minimum Index of a Valid Split
Min split index to have equal majority elements
26.03.2025
medium2033. Minimum Operations to Make a Uni-Value Grid
Min sum of differences of x times
25.03.2025
medium3394. Check if Grid can be Cut into Sections
non-intersecting ranges on x or y axis sweep
24.03.2025
medium3169. Count Days Without Meetings
Days of non-intersecting intervals sweep
23.03.2025
medium1976. Number of Ways to Arrive at Destination
Count optimal paths from 0 to n - 1 ford
22.03.2025
medium2685. Count the Number of Complete Components
Count fully connected components
21.03.2025
medium2115. Find All Possible Recipes from Given Supplies
Valid recipes from supplies
20.03.2025
hard3108. Minimum Cost Walk in Weighted Graph
Min AND of path weights manipulation
19.03.2025
medium3191. Minimum Operations to Make Binary Array Elements Equal to One I
bits flips to make all 1 manipulation
18.03.2025
medium2401. Longest Nice Subarray
Max window of all pairs AND zero pointers manipulation
17.03.2025
easy2206. Divide Array Into Equal Pairs
All numbers in pairs
16.03.2025
medium2594. Minimum Time to Repair Cars
Min rank[i] count^2 to fix all cars search
15.03.2025
medium2560. House Robber IV
Min-max of non-adjucents in array search
14.03.2025
medium2226. Maximum Candies Allocated to K Children
Distribute candies to k equal buckets search
13.03.2025
medium3356. Zero Array Transformation II
Min queries (l..r, v) to decrease nums by v to 0 sweep
12.03.2025
easy2529. Maximum Count of Positive Integer and Negative Integer
Max positive count or negative count search
11.03.2025
medium1358. Number of Substrings Containing All Three Characters
Substrings with [abc] pointers
10.03.2025
medium3306. Count of Substrings Containing Every Vowel and K Consonants II
Substring with all vowels and k others pointers
09.03.2025
medium3208. Alternating Groups II
Count cycling alterating k-subarrays pointers
08.03.2025
easy2379. Minimum Recolors to Get K Consecutive Black Blocks
Min 'W' flips to make k 'B' window
07.03.2025
medium2523. Closest Prime Numbers in Range
Min diff primes pair in left..right
06.03.2025
easy2965. Find Missing and Repeated Values
Missing and repeated in 1..n array
05.03.2025
medium2579. Count Total Number of Colored Cells
Arithmetic sum
04.03.2025
medium1780. Check if Number is a Sum of Powers of Three
Number as the sum of distinct powers of 3
03.03.2025
medium2161. Partition Array According to Given Pivot
Partition around p
02.03.2025
easy2570. Merge Two 2D Arrays by Summing Values
Merge two ascending [key, value] lists
01.03.2025
easy2460. Apply Operations to an Array
If a[i] == a[i + 1], a[i] = 2, a[i + 1] = 0
28.02.2025
hard1092. Shortest Common Supersequence
Shortest string with both subsequences
27.02.2025
medium873. Length of Longest Fibonacci Subsequence
Longest sequence a, b, a + b programming
26.02.2025
medium1749. Maximum Absolute Sum of Any Subarray
Max abs of subarray sum sum
25.02.2025
medium1524. Number of Sub-arrays With Odd Sum
Count odd sum subarrays sum
24.02.2025
medium2467. Most Profitable Path in a Tree
Max Alice path down, Bob up in tree
23.02.2025
medium889. Construct Binary Tree from Preorder and Postorder Traversal
Tree from preorder & postorder
22.02.2025
hard1028. Recover a Tree From Preorder Traversal
Recover binary tree from depth-dashes string
21.02.2025
medium1261. Find Elements in a Contaminated Binary Tree
Is number in a tree 2 v+(1L, 2R)?
20.02.2025
medium1980. Find Unique Binary String
Binary number not in a set
19.02.2025
medium1415. The k-th Lexicographical String of All Happy Strings of Length n
kth string of abc permutations
18.02.2025
medium2375. Construct Smallest Number From DI String
Smallest number from 1..9 and Inc-Dec pattern
17.02.2025
medium1079. Letter Tile Possibilities
Count uniq sequences from letters
16.02.2025
medium1718. Construct the Lexicographically Largest Valid Sequence
Construct array x = 1..n, a[i] = x, a[i + x] = x
15.02.2025
medium2698. Find the Punishment Number of an Integer
Sum x^2 if it's string partition sum = x
14.02.2025
medium1352. Product of the Last K Numbers
Running suffix product product
13.02.2025
medium3066. Minimum Operations to Exceed Threshold Value II
Count nums += min(x,y) 2+max(x,y) < k
12.02.2025
medium2342. Max Sum of a Pair With Equal Sum of Digits
Max pairs sum with equal digits sum
11.02.2025
medium1910. Remove All Occurrences of a Substring
Remove substring recursively
10.02.2025
easy3174. Clear Digits
Remove [char][digit] pairs from string
09.02.2025
medium2364. Count Number of Bad Pairs
Count pairs a[i] - a[j] != j - i
08.02.2025
medium2349. Design a Number Container System
Smallest running index of number in map
07.02.2025
medium3160. Find the Number of Distinct Colors Among the Balls
Running colors counter
06.02.2025
medium1726. Tuple with Same Product
Count uniq 4-tupples a b=c d
05.02.2025
easy1790. Check if One String Swap Can Make Strings Equal
One swap to make stings equal
04.02.2025
easy1800. Maximum Ascending Subarray Sum
Max increasing subarray sum
03.02.2025
easy3105. Longest Strictly Increasing or Strictly Decreasing Subarray
Longest strict monotonic subarray
02.02.2025
easy1752. Check if Array Is Sorted and Rotated
Is array sorted and rotated?
01.02.2025
easy3151. Special Array I
All siblings even-odd
31.01.2025
hard827. Making A Large Island
Max area after filling one empty 2D grid cell find
30.01.2025
hard2493. Divide Nodes Into the Maximum Number of Groups
Max count of bipartitions in a graph
29.01.2025
medium684. Redundant Connection
First edge making a cycle in graph find
28.01.2025
medium2658. Maximum Number of Fish in a Grid
Largest region in 2D grid
27.01.2025
medium1462. Course Schedule IV
All innodes for each query in graph warshall
26.01.2025
hard2127. Maximum Employees to Be Invited to a Meeting
Max connected siblings in graph
25.01.2025
medium2948. Make Lexicographically Smallest Array by Swapping Elements
Sort by swapping ab, where abs(a - b) < limit
24.01.2025
medium802. Find Eventual Safe States
Nodes without cycles
23.01.2025
medium1267. Count Servers that Communicate
Connected servers by row or column
22.01.2025
medium1765. Map of Highest Peak
Make growing landscape
21.01.2025
medium2017. Grid Game
Maximum of minimized paths sum
20.01.2025
medium2661. First Completely Painted Row or Column
Index of the first filled row/column in 2D matrix
19.01.2025
hard407. Trapping Rain Water II
Trap the water in 2D height matrix
18.01.2025
hard1368. Minimum Cost to Make at Least One Valid Path in a Grid
Min undirected jumps to reach the end in grid
17.01.2025
medium2683. Neighboring Bitwise XOR
Can restore next-sibl-xored array?
16.01.2025
medium2425. Bitwise XOR of All Pairings
Xor of all pairs xors
15.01.2025
medium2429. Minimize XOR
Min xor with num1, bits count of num2
14.01.2025
medium2657. Find the Prefix Common Array of Two Arrays
A[..i] and B[..i] intersections sizes
13.01.2025
medium3223. Minimum Length of String After Operations
Length after removing repeatings > 2
12.01.2025
medium2116. Check if a Parentheses String Can Be Valid
Balance parenthesis with wildcards
11.01.2025
medium1400. Construct K Palindrome Strings
Can make k palindromes from string?
10.01.2025
medium916. Word Subsets
Words containing all chars of words2
09.01.2025
easy2185. Counting Words With a Given Prefix
Count words with prefix
08.01.2025
easy3042. Count Prefix and Suffix Pairs I
Count prefix-suffix matched pairs
07.01.2025
easy1408. String Matching in an Array
All substrings
06.01.2025
medium1769. Minimum Number of Operations to Move All Balls to Each Box
Sum distances to all 1 for every position sum
05.01.2025
medium2381. Shifting Letters II
Apply from..to, direction shifts to string chars sweep
04.01.2025
medium1930. Unique Length-3 Palindromic Subsequences
Count palindromes of length 3
03.01.2025
medium2270. Number of Ways to Split Array
Count splits left sum >= right sum sum
02.01.2025
medium2559. Count Vowel Strings in Ranges
Count words[q[0]..q[1]] starting and ending with "aeiou"
01.01.2025
easy1422. Maximum Score After Splitting a String
Max(left zeros + right ones)