2658. Maximum Number of Fish in a Grid
2658. Maximum Number of Fish in a Grid
Description
You are given a 0-indexed 2D matrix grid
of size m x n
, where (r, c)
represents:
209. Minimum Size Subarray Sum
209. Minimum Size Subarray Sum
Description
Given an array of positive integers nums
and a positive integer target
, return the minimal length of a subarray whose sum is greater than or equal to target
. If there is no such subarray, return 0
instead.
77. Combinations
1382. Balance a Binary Search Tree
1382. Balance a Binary Search Tree
Description
Given the root
of a binary search tree, return a balanced binary search tree with the same node values. If there is more than one answer, return any of them .
3472. Longest Palindromic Subsequence After at Most K Operations
3472. Longest Palindromic Subsequence After at Most K Operations
Description
You are given a string s
and an integer k
.
3471. Find the Largest Almost Missing Integer
3471. Find the Largest Almost Missing Integer
Description
You are given an integer array nums
and an integer k
.
3462. Maximum Sum With at Most K Elements
3462. Maximum Sum With at Most K Elements
Description
You are given a 2D integer matrix grid
of size n x m
, an integer array limits
of length n
, and an integer k
. The task is to find the maximum sum of at most k
elements from the matrix grid
such that: