Jan 4, 2026
You are given two arrays rowSum and colSum of non-negative integers where rowSum[i] is the sum of the elements in the i-th row and colSum[j] is the sum of the...
leetcodemediumarraymatrixgreedy
Jan 4, 2026
Given a string s and an integer k, return true if you can use all the characters in s to construct k palindrome strings or false otherwise.
leetcodemediumstringgreedyhash-table
Jan 4, 2026
You are given two strings s1 and s2 of equal length consisting of only letters 'x' and 'y'.
leetcodemediumstringmathgreedy
Jan 4, 2026
A company is planning to interview 2n people. Given the array costs where costs[i] = [aCosti, bCosti], the cost of flying the i-th person to city a is aCosti, and...
leetcodemediumarraygreedysorting
Jan 4, 2026
There are n children standing in a line. Each child is assigned a rating value given in the integer array ratings.
leetcodehardarraygreedy
Jan 4, 2026
You are assigned to put some amount of boxes onto one truck. You are given a 2D array boxTypes, where boxTypes[i] = [numberOfBoxesi, numberOfUnitsPerBoxi]:
leetcodeeasyarraygreedysorting
Jan 4, 2026
We have n chips, where the position of the i-th chip is position[i].
leetcodeeasyarraymathgreedy
Jan 3, 2026
Given an integer array nums of 2n integers, group these integers into n pairs (a1, b1), (a2, b2), ..., (an, bn) such that the sum of min(ai, bi) for all...
leetcodeeasyarraygreedysorting
Jan 3, 2026
You are given an integer array prices where prices[i] is the price of a given stock on the i-th day.
leetcodemediumarraygreedydynamic-programming
Jan 3, 2026
Given two strings s and t, return true if s is a subsequence of t, or false otherwise.
leetcodeeasystringtwo-pointersgreedydynamic-programming