https://leetcode.com/problems/maximum-sum-of-distinct-subarrays-with-length-k/description/
Max
Max
k
-unique window sum #medium #sliding_window👍3
https://leetcode.com/problems/take-k-of-each-character-from-left-and-right/description/
Min take
Min take
k
of a,b,c
from head or tail #medium #two_pointers👍3
https://leetcode.com/problems/count-unguarded-cells-in-the-grid/description/
Count unseen cells in 2D matrix with guards and walls #medium #matrix
Count unseen cells in 2D matrix with guards and walls #medium #matrix
👍3
https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/description/
Max same-bit-rows after flipping columns in 01-2D matrix #medium #matrix
Max same-bit-rows after flipping columns in 01-2D matrix #medium #matrix
👍2
https://leetcode.com/problems/rotating-the-box/description/
Rotate matrix and simulate the fall #medium #matrix
Rotate matrix and simulate the fall #medium #matrix
👍3
https://leetcode.com/problems/maximum-matrix-sum/description/
Max sum of 2D matrix after multiply by -1 adjacent cells #medium
Max sum of 2D matrix after multiply by -1 adjacent cells #medium
👍2
https://leetcode.com/problems/shortest-distance-after-road-addition-queries-i/description/
Query shortest paths after adding new edges #medium #bfs
Query shortest paths after adding new edges #medium #bfs
👍2
https://leetcode.com/problems/minimum-obstacle-removal-to-reach-corner/description/
Min removals to travel first-last in 2D grid #hard #bfs #dijkstra
Min removals to travel first-last in 2D grid #hard #bfs #dijkstra
👍2
https://leetcode.com/problems/minimum-time-to-visit-a-cell-in-a-grid/description/
Min time start-end 4-d travel in 2D matrix with waiting #hard #dijkstra
Min time start-end 4-d travel in 2D matrix with waiting #hard #dijkstra
👍2
https://leetcode.com/problems/valid-arrangement-of-pairs/description/
Hierholzer's algorithm #hard #graph
Hierholzer's algorithm #hard #graph
👍2
https://leetcode.com/problems/check-if-n-and-its-double-exist/description/
Any
Any
i != j && a[i] = 2 * a[j]
#easy👍3
https://leetcode.com/problems/adding-spaces-to-a-string/description/
Insert spaces into string #medium
Insert spaces into string #medium
👍3
https://leetcode.com/problems/make-string-a-subsequence-using-cyclic-increments/description/
Increase some chars once to make a subsequence #medium
Increase some chars once to make a subsequence #medium
👍3
https://leetcode.com/problems/move-pieces-to-obtain-a-string/description/
Move
Move
L
left and R
right to match strings #medium👍2
https://leetcode.com/problems/maximum-number-of-integers-to-choose-from-a-range-i/description/
Sum
Sum
1..n
excluding banned
until maxSum
#medium👍2
https://leetcode.com/problems/minimum-limit-of-balls-in-a-bag/description/
Max number after at most
Max number after at most
maxOperations
of splitting #medium #binary_search👍2