Skip to content
LEETFLIX

method

Greedy — animated LeetCode walkthroughs

LeetCode problems solved with Greedy. Browse the complete tag, then watch the algorithm move — step-by-step animation, Python and Go.

482 problems · 433 animated · 49 locked

Full Greedy index

  1. 11Container With Most WaterWatch
  2. 44Wildcard MatchingWatch
  3. 45Jump Game IIWatch
  4. 55Jump GameWatch
  5. 122Best Time to Buy and Sell Stock IIWatch
  6. 134Gas StationWatch
  7. 135CandyWatch
  8. 179Largest NumberWatch
  9. 253Meeting Rooms IILocked
  10. 280Wiggle SortLocked
  11. 316Remove Duplicate LettersWatch
  12. 321Create Maximum NumberWatch
  13. 324Wiggle Sort IIWatch
  14. 330Patching ArrayWatch
  15. 334Increasing Triplet SubsequenceWatch
  16. 358Rearrange String k Distance ApartLocked
  17. 376Wiggle SubsequenceWatch
  18. 397Integer ReplacementWatch
  19. 402Remove K DigitsWatch
  20. 409Longest PalindromeWatch
  21. 410Split Array Largest SumWatch
  22. 420Strong Password CheckerWatch
  23. 435Non-overlapping IntervalsWatch
  24. 452Minimum Number of Arrows to Burst BalloonsWatch
  25. 455Assign CookiesWatch
  26. 484Find PermutationLocked
  27. 502IPOWatch
  28. 517Super Washing MachinesWatch
  29. 527Word AbbreviationLocked
  30. 555Split Concatenated StringsLocked
  31. 561Array PartitionWatch
  32. 581Shortest Unsorted Continuous SubarrayWatch
  33. 605Can Place FlowersWatch
  34. 611Valid Triangle NumberWatch
  35. 621Task SchedulerWatch
  36. 624Maximum Distance in ArraysWatch
  37. 625Minimum FactorizationLocked
  38. 630Course Schedule IIIWatch
  39. 632Smallest Range Covering Elements from K ListsWatch
  40. 646Maximum Length of Pair ChainWatch
  41. 649Dota2 SenateWatch
  42. 659Split Array into Consecutive SubsequencesWatch
  43. 670Maximum SwapWatch
  44. 678Valid Parenthesis StringWatch
  45. 680Valid Palindrome IIWatch
  46. 714Best Time to Buy and Sell Stock with Transaction FeeWatch
  47. 738Monotone Increasing DigitsWatch
  48. 757Set Intersection Size At Least TwoWatch
  49. 763Partition LabelsWatch
  50. 765Couples Holding HandsWatch
  51. 767Reorganize StringWatch
  52. 768Max Chunks To Make Sorted IIWatch
  53. 769Max Chunks To Make SortedWatch
  54. 781Rabbits in ForestWatch
  55. 807Max Increase to Keep City SkylineWatch
  56. 826Most Profit Assigning WorkWatch
  57. 846Hand of StraightsWatch
  58. 857Minimum Cost to Hire K WorkersWatch
  59. 860Lemonade ChangeWatch
  60. 861Score After Flipping MatrixWatch
  61. 870Advantage ShuffleWatch
  62. 871Minimum Number of Refueling StopsWatch
  63. 881Boats to Save PeopleWatch
  64. 910Smallest Range IIWatch
  65. 921Minimum Add to Make Parentheses ValidWatch
  66. 936Stamping The SequenceWatch
  67. 942DI String MatchWatch
  68. 945Minimum Increment to Make Array UniqueWatch
  69. 948Bag of TokensWatch
  70. 954Array of Doubled PairsWatch
  71. 955Delete Columns to Make Sorted IIWatch
  72. 969Pancake SortingWatch
  73. 976Largest Perimeter TriangleWatch
  74. 984String Without AAA or BBBWatch
  75. 991Broken CalculatorWatch
  76. 1005Maximize Sum Of Array After K NegationsWatch
  77. 1007Minimum Domino Rotations For Equal RowWatch
  78. 1013Partition Array Into Three Parts With Equal SumWatch
  79. 1024Video StitchingWatch
  80. 1029Two City SchedulingWatch
  81. 1053Previous Permutation With One SwapWatch
  82. 1054Distant BarcodesWatch
  83. 1055Shortest Way to Form StringLocked
  84. 1058Minimize Rounding Error to Meet TargetLocked
  85. 1081Smallest Subsequence of Distinct CharactersWatch
  86. 1090Largest Values From LabelsWatch
  87. 1130Minimum Cost Tree From Leaf ValuesWatch
  88. 1144Decrease Elements To Make Array ZigzagWatch
  89. 1147Longest Chunked Palindrome DecompositionWatch
  90. 1167Minimum Cost to Connect SticksLocked
  91. 1183Maximum Number of OnesLocked
  92. 1196How Many Apples Can You Put into the BasketLocked
  93. 1199Minimum Time to Build BlocksLocked
  94. 1217Minimum Cost to Move Chips to The Same PositionWatch
  95. 1221Split a String in Balanced StringsWatch
  96. 1247Minimum Swaps to Make Strings EqualWatch
  97. 1253Reconstruct a 2-Row Binary MatrixWatch
  98. 1262Greatest Sum Divisible by ThreeWatch
  99. 1282Group the People Given the Group Size They Belong ToWatch
  100. 1296Divide Array in Sets of K Consecutive NumbersWatch
  101. 1323Maximum 69 NumberWatch
  102. 1326Minimum Number of Taps to Open to Water a GardenWatch
  103. 1328Break a PalindromeWatch
  104. 1330Reverse Subarray To Maximize Array ValueWatch
  105. 1338Reduce Array Size to The HalfWatch
  106. 1353Maximum Number of Events That Can Be AttendedWatch
  107. 1363Largest Multiple of ThreeWatch
  108. 1382Balance a Binary Search TreeWatch
  109. 1383Maximum Performance of a TeamWatch
  110. 1386Cinema Seat AllocationWatch
  111. 1388Pizza With 3n SlicesWatch
  112. 1400Construct K Palindrome StringsWatch
  113. 1402Reducing DishesWatch
  114. 1403Minimum Subsequence in Non-Increasing OrderWatch
  115. 1405Longest Happy StringWatch
  116. 1414Find the Minimum Number of Fibonacci Numbers Whose Sum Is KWatch
  117. 1432Max Difference You Can Get From Changing an IntegerWatch
  118. 1433Check If a String Can Break Another StringWatch
  119. 1465Maximum Area of a Piece of Cake After Horizontal and Vertical CutsWatch
  120. 1481Least Number of Unique Integers after K RemovalsWatch
  121. 1488Avoid Flood in The CityWatch
  122. 1505Minimum Possible Integer After at Most K Adjacent Swaps On DigitsWatch
  123. 1509Minimum Difference Between Largest and Smallest Value in Three MovesWatch
  124. 1520Maximum Number of Non-Overlapping SubstringsWatch
  125. 1526Minimum Number of Increments on Subarrays to Form a Target ArrayWatch
  126. 1529Minimum Suffix FlipsWatch
  127. 1536Minimum Swaps to Arrange a Binary GridWatch
  128. 1537Get the Maximum ScoreWatch
  129. 1541Minimum Insertions to Balance a Parentheses StringWatch
  130. 1546Maximum Number of Non-Overlapping Subarrays With Sum Equals TargetWatch
  131. 1558Minimum Numbers of Function Calls to Make Target ArrayWatch
  132. 1561Maximum Number of Coins You Can GetWatch
  133. 1564Put Boxes Into the Warehouse ILocked
  134. 1567Maximum Length of Subarray With Positive ProductWatch
  135. 1578Minimum Time to Make Rope ColorfulWatch
  136. 1580Put Boxes Into the Warehouse IILocked
  137. 1585Check If String Is Transformable With Substring Sort OperationsWatch
  138. 1589Maximum Sum Obtained of Any PermutationWatch
  139. 1605Find Valid Matrix Given Row and Column SumsWatch
  140. 1642Furthest Building You Can ReachWatch
  141. 1647Minimum Deletions to Make Character Frequencies UniqueWatch
  142. 1648Sell Diminishing-Valued Colored BallsWatch
  143. 1663Smallest String With A Given Numeric ValueWatch
  144. 1665Minimum Initial Energy to Finish TasksWatch
  145. 1671Minimum Number of Removals to Make Mountain ArrayWatch
  146. 1673Find the Most Competitive SubsequenceWatch
  147. 1675Minimize Deviation in ArrayWatch
  148. 1686Stone Game VIWatch
  149. 1689Partitioning Into Minimum Number Of Deci-Binary NumbersWatch
  150. 1702Maximum Binary String After ChangeWatch
  151. 1703Minimum Adjacent Swaps for K Consecutive OnesWatch
  152. 1705Maximum Number of Eaten ApplesWatch
  153. 1708Largest Subarray Length KLocked
  154. 1710Maximum Units on a TruckWatch
  155. 1713Minimum Operations to Make a SubsequenceWatch
  156. 1717Maximum Score From Removing SubstringsWatch
  157. 1727Largest Submatrix With RearrangementsWatch
  158. 1733Minimum Number of People to TeachWatch
  159. 1736Latest Time by Replacing Hidden DigitsWatch
  160. 1739Building BoxesWatch
  161. 1753Maximum Score From Removing StonesWatch
  162. 1754Largest Merge Of Two StringsWatch
  163. 1764Form Array by Concatenating Subarrays of Another ArrayWatch
  164. 1775Equal Sum Arrays With Minimum Number of OperationsWatch
  165. 1785Minimum Elements to Add to Form a Given SumWatch
  166. 1788Maximize the Beauty of the GardenLocked
  167. 1792Maximum Average Pass RatioWatch
  168. 1794Count Pairs of Equal Substrings With Minimum DifferenceLocked
  169. 1798Maximum Number of Consecutive Values You Can MakeWatch
  170. 1802Maximum Value at a Given Index in a Bounded ArrayWatch
  171. 1824Minimum Sideway JumpsWatch
  172. 1827Minimum Operations to Make the Array IncreasingWatch
  173. 1833Maximum Ice Cream BarsWatch
  174. 1838Frequency of the Most Frequent ElementWatch
  175. 1846Maximum Element After Decreasing and RearrangingWatch
  176. 1850Minimum Adjacent Swaps to Reach the Kth Smallest NumberWatch
  177. 1864Minimum Number of Swaps to Make the Binary String AlternatingWatch
  178. 1874Minimize Product Sum of Two ArraysLocked
  179. 1877Minimize Maximum Pair Sum in ArrayWatch
  180. 1881Maximum Value after InsertionWatch
  181. 1899Merge Triplets to Form Target TripletWatch
  182. 1903Largest Odd Number in StringWatch
  183. 1921Eliminate Maximum Number of MonstersWatch
  184. 1927Sum GameWatch
  185. 1936Add Minimum Number of RungsWatch
  186. 1946Largest Number After Mutating SubstringWatch
  187. 1953Maximum Number of Weeks for Which You Can WorkWatch
  188. 1962Remove Stones to Minimize the TotalWatch
  189. 1963Minimum Number of Swaps to Make the String BalancedWatch
  190. 1968Array With Elements Not Equal to Average of NeighborsWatch
  191. 1969Minimum Non-Zero Product of the Array ElementsWatch
  192. 1974Minimum Time to Type Word Using Special TypewriterWatch
  193. 1975Maximum Matrix SumWatch
  194. 1989Maximum Number of People That Can Be Caught in TagLocked
  195. 1996The Number of Weak Characters in the GameWatch
  196. 2007Find Original Array From Doubled ArrayWatch
  197. 2027Minimum Moves to Convert StringWatch
  198. 2029Stone Game IXWatch
  199. 2030Smallest K-Length Subsequence With Occurrences of a LetterWatch
  200. 2037Minimum Number of Moves to Seat EveryoneWatch
  201. 2038Remove Colored Pieces if Both Neighbors are the Same ColorWatch
  202. 2064Minimized Maximum of Products Distributed to Any StoreWatch
  203. 2071Maximum Number of Tasks You Can AssignWatch
  204. 2078Two Furthest Houses With Different ColorsWatch
  205. 2086Minimum Number of Food Buckets to Feed the HamstersWatch
  206. 2087Minimum Cost Homecoming of a Robot in a GridWatch
  207. 2091Removing Minimum and Maximum From ArrayWatch
  208. 2098Subsequence of Size K With the Largest Even SumLocked
  209. 2116Check if a Parentheses String Can Be ValidWatch
  210. 2126Destroying AsteroidsWatch
  211. 2131Longest Palindrome by Concatenating Two Letter WordsWatch
  212. 2132Stamping the GridWatch
  213. 2136Earliest Possible Day of Full BloomWatch
  214. 2139Minimum Moves to Reach Target ScoreWatch
  215. 2141Maximum Running Time of N ComputersWatch
  216. 2144Minimum Cost of Buying Candies With DiscountWatch
  217. 2160Minimum Sum of Four Digit Number After Splitting DigitsWatch
  218. 2170Minimum Operations to Make the Array AlternatingWatch
  219. 2171Removing Minimum Number of Magic BeansWatch
  220. 2178Maximum Split of Positive Even IntegersWatch
  221. 2182Construct String With Repeat LimitWatch
  222. 2193Minimum Number of Moves to Make PalindromeWatch
  223. 2195Append K Integers With Minimal SumWatch
  224. 2202Maximize the Topmost Element After K MovesWatch
  225. 2207Maximize Number of Subsequences in a StringWatch
  226. 2208Minimum Operations to Halve Array SumWatch
  227. 2214Minimum Health to Beat GameLocked
  228. 2216Minimum Deletions to Make Array BeautifulWatch
  229. 2224Minimum Number of Operations to Convert TimeWatch
  230. 2233Maximum Product After K IncrementsWatch
  231. 2234Maximum Total Beauty of the GardensWatch
  232. 2241Design an ATM MachineWatch
  233. 2244Minimum Rounds to Complete All TasksWatch
  234. 2259Remove Digit From Number to Maximize ResultWatch
  235. 2263Make Array Non-decreasing or Non-increasingLocked
  236. 2268Minimum Number of KeypressesLocked
  237. 2271Maximum White Tiles Covered by a CarpetWatch
  238. 2279Maximum Bags With Full Capacity of RocksWatch
  239. 2285Maximum Total Importance of RoadsWatch
  240. 2294Partition Array Such That Maximum Difference Is KWatch
  241. 2310Sum of Numbers With Units Digit KWatch
  242. 2311Longest Binary Subsequence Less Than or Equal to KWatch
  243. 2323Find Minimum Time to Finish All Jobs IILocked
  244. 2333Minimum Sum of Squared DifferenceWatch
  245. 2335Minimum Amount of Time to Fill CupsWatch
  246. 2340Minimum Adjacent Swaps to Make a Valid ArrayLocked
  247. 2350Shortest Impossible Sequence of RollsWatch
  248. 2357Make Array Zero by Subtracting Equal AmountsWatch
  249. 2358Maximum Number of Groups Entering a CompetitionWatch
  250. 2366Minimum Replacements to Sort the ArrayWatch
  251. 2375Construct Smallest Number From DI StringWatch
  252. 2383Minimum Hours of Training to Win a CompetitionWatch
  253. 2384Largest Palindromic NumberWatch
  254. 2389Longest Subsequence With Limited SumWatch
  255. 2405Optimal Partition of StringWatch
  256. 2406Divide Intervals Into Minimum Number of GroupsWatch
  257. 2410Maximum Matching of Players With TrainersWatch
  258. 2412Minimum Money Required Before TransactionsWatch
  259. 2422Merge Operations to Turn Array Into a PalindromeLocked
  260. 2429Minimize XORWatch
  261. 2434Using a Robot to Print the Lexicographically Smallest StringWatch
  262. 2436Minimum Split Into Subarrays With GCD Greater Than OneLocked
  263. 2439Minimize Maximum of ArrayWatch
  264. 2448Minimum Cost to Make Array EqualWatch
  265. 2449Minimum Number of Operations to Make Arrays SimilarWatch
  266. 2457Minimum Addition to Make Integer BeautifulWatch
  267. 2472Maximum Number of Non-overlapping Palindrome SubstringsWatch
  268. 2486Append Characters to String to Make SubsequenceWatch
  269. 2497Maximum Star Sum of a GraphWatch
  270. 2498Frog Jump IIWatch
  271. 2499Minimum Total Cost to Make Arrays UnequalWatch
  272. 2517Maximum Tastiness of Candy BasketWatch
  273. 2522Partition String Into Substrings With Values at Most KWatch
  274. 2528Maximize the Minimum Powered CityWatch
  275. 2530Maximal Score After Applying K OperationsWatch
  276. 2541Minimum Operations to Make Array Equal IIWatch
  277. 2542Maximum Subsequence ScoreWatch
  278. 2548Maximum Price to Fill a BagLocked
  279. 2551Put Marbles in BagsWatch
  280. 2554Maximum Number of Integers to Choose From a Range IWatch
  281. 2557Maximum Number of Integers to Choose From a Range IILocked
  282. 2560House Robber IVWatch
  283. 2561Rearranging FruitsWatch
  284. 2566Maximum Difference by Remapping a DigitWatch
  285. 2567Minimum Score by Changing Two ElementsWatch
  286. 2571Minimum Operations to Reduce an Integer to 0Watch
  287. 2573Find the String with LCPWatch
  288. 2576Find the Maximum Number of Marked IndicesWatch
  289. 2578Split With Minimum SumWatch
  290. 2587Rearrange Array to Maximize Prefix ScoreWatch
  291. 2589Minimum Time to Complete All TasksWatch
  292. 2591Distribute Money to Maximum ChildrenWatch
  293. 2592Maximize Greatness of an ArrayWatch
  294. 2598Smallest Missing Non-negative Integer After OperationsWatch
  295. 2599Make the Prefix Sum Non-negativeLocked
  296. 2600K Items With the Maximum SumWatch
  297. 2601Prime Subtraction OperationWatch
  298. 2607Make K-Subarray Sums EqualWatch
  299. 2611Mice and CheeseWatch
  300. 2616Minimize the Maximum Difference of PairsWatch
  301. 2645Minimum Additions to Make Valid StringWatch
  302. 2656Maximum Sum With Exactly K Elements Watch
  303. 2659Make Array EmptyWatch
  304. 2663Lexicographically Smallest Beautiful StringWatch
  305. 2673Make Costs of Paths Equal in a Binary TreeWatch
  306. 2680Maximum ORWatch
  307. 2697Lexicographically Smallest PalindromeWatch
  308. 2706Buy Two ChocolatesWatch
  309. 2708Maximum Strength of a GroupWatch
  310. 2712Minimum Cost to Make All Characters EqualWatch
  311. 2734Lexicographically Smallest String After Substring OperationWatch
  312. 2745Construct the Longest New StringWatch
  313. 2789Largest Element in an Array after Merge OperationsWatch
  314. 2790Maximum Number of Groups With Increasing LengthWatch
  315. 2800Shortest String That Contains Three StringsWatch
  316. 2811Check if it is Possible to Split ArrayWatch
  317. 2813Maximum Elegance of a K-Length SubsequenceWatch
  318. 2818Apply Operations to Maximize ScoreWatch
  319. 2829Determine the Minimum Sum of a k-avoiding ArrayWatch
  320. 2834Find the Minimum Possible Sum of a Beautiful ArrayWatch
  321. 2835Minimum Operations to Form Subsequence With Target SumWatch
  322. 2842Count K-Subsequences of a String With Maximum BeautyWatch
  323. 2844Minimum Operations to Make a Special NumberWatch
  324. 2847Smallest Number With Given Digit ProductLocked
  325. 2856Minimum Array Length After Pair RemovalsWatch
  326. 2864Maximum Odd Binary NumberWatch
  327. 2868The Wording GameLocked
  328. 2870Minimum Number of Operations to Make Array EmptyWatch
  329. 2871Split Array Into Maximum Number of SubarraysWatch
  330. 2892Minimizing Array After Replacing Pairs With Their ProductLocked
  331. 2895Minimum Processing TimeWatch
  332. 2897Apply Operations on Array to Maximize Sum of SquaresWatch
  333. 2900Longest Unequal Adjacent Groups Subsequence IWatch
  334. 2910Minimum Number of Groups to Create a Valid AssignmentWatch
  335. 2918Minimum Equal Sum of Two Arrays After Replacing ZerosWatch
  336. 2931Maximum Spending After Buying ItemsWatch
  337. 2938Separate Black and White BallsWatch
  338. 2939Maximum Xor ProductWatch
  339. 2952Minimum Number of Coins to be AddedWatch
  340. 2957Remove Adjacent Almost-Equal CharactersWatch
  341. 2966Divide Array Into Arrays With Max DifferenceWatch
  342. 2967Minimum Cost to Make Array EqualindromicWatch
  343. 2971Find Polygon With the Largest PerimeterWatch
  344. 3002Maximum Size of a Set After RemovalsWatch
  345. 3012Minimize Length of Array Using OperationsWatch
  346. 3014Minimum Number of Pushes to Type Word IWatch
  347. 3016Minimum Number of Pushes to Type Word IIWatch
  348. 3022Minimize OR of Remaining Elements Using OperationsWatch
  349. 3035Maximum Palindromes After OperationsWatch
  350. 3049Earliest Second to Mark Indices IIWatch
  351. 3068Find the Maximum Sum of Node ValuesWatch
  352. 3074Apple Redistribution into BoxesWatch
  353. 3075Maximize Happiness of Selected ChildrenWatch
  354. 3081Replace Question Marks in String to Minimize Its ValueWatch
  355. 3085Minimum Deletions to Make String K-SpecialWatch
  356. 3086Minimum Moves to Pick K OnesWatch
  357. 3088Make String Anti-palindromeLocked
  358. 3091Apply Operations to Make Sum of Array Greater Than or Equal to kWatch
  359. 3106Lexicographically Smallest String After Operations With ConstraintWatch
  360. 3107Minimum Operations to Make Median of Array Equal to KWatch
  361. 3111Minimum Rectangles to Cover PointsWatch
  362. 3119Maximum Number of Potholes That Can Be FixedLocked
  363. 3125Maximum Number That Makes Result of Bitwise AND ZeroLocked
  364. 3139Minimum Cost to Equalize ArrayWatch
  365. 3170Lexicographically Minimum String After Removing StarsWatch
  366. 3189Minimum Moves to Get a Peaceful BoardLocked
  367. 3192Minimum Operations to Make Binary Array Elements Equal to One IIWatch
  368. 3205Maximum Array Hopping Score ILocked
  369. 3207Maximum Points After Enemy BattlesWatch
  370. 3216Lexicographically Smallest String After a SwapWatch
  371. 3218Minimum Cost for Cutting Cake IWatch
  372. 3219Minimum Cost for Cutting Cake IIWatch
  373. 3221Maximum Array Hopping Score IILocked
  374. 3228Maximum Number of Operations to Move Ones to the EndWatch
  375. 3229Minimum Operations to Make Array Equal to TargetWatch
  376. 3244Shortest Distance After Road Addition Queries IIWatch
  377. 3260Find the Largest Palindrome Divisible by KWatch
  378. 3273Minimum Amount of Damage Dealt to BobWatch
  379. 3281Maximize Score of Numbers in RangesWatch
  380. 3282Reach End of Array With Max ScoreWatch
  381. 3291Minimum Number of Valid Strings to Form Target IWatch
  382. 3292Minimum Number of Valid Strings to Form Target IIWatch
  383. 3296Minimum Number of Seconds to Make Mountain Height ZeroWatch
  384. 3301Maximize the Total Height of Unique TowersWatch
  385. 3302Find the Lexicographically Smallest Valid SequenceWatch
  386. 3326Minimum Division Operations to Make Array Non DecreasingWatch
  387. 3348Smallest Divisible Digit Product IIWatch
  388. 3357Minimize the Maximum Adjacent Element DifferenceWatch
  389. 3362Zero Array Transformation IIIWatch
  390. 3397Maximum Number of Distinct Elements After OperationsWatch
  391. 3402Minimum Operations to Make Columns Strictly IncreasingWatch
  392. 3413Maximum Coins From K Consecutive BagsWatch
  393. 3424Minimum Cost to Make Arrays IdenticalWatch
  394. 3434Maximum Frequency After Subarray OperationWatch
  395. 3439Reschedule Meetings for Maximum Free Time IWatch
  396. 3440Reschedule Meetings for Maximum Free Time IIWatch
  397. 3449Maximize the Minimum Game ScoreWatch
  398. 3457Eat Pizzas!Watch
  399. 3458Select K Disjoint Special SubstringsWatch
  400. 3462Maximum Sum With at Most K ElementsWatch
  401. 3474Lexicographically Smallest Generated StringWatch
  402. 3476Maximize Profit from Task AssignmentLocked
  403. 3487Maximum Unique Subarray Sum After DeletionWatch
  404. 3496Maximize Score After Pair DeletionsLocked
  405. 3506Find Time Required to Eliminate Bacterial StrainsLocked
  406. 3511Make a Positive ArrayLocked
  407. 3523Make Array Non-decreasingWatch
  408. 3534Path Existence Queries in a Graph IIWatch
  409. 3542Minimum Operations to Convert All Elements to ZeroWatch
  410. 3545Minimum Deletions for At Most K Distinct CharactersWatch
  411. 3547Maximum Sum of Edge Values in a GraphWatch
  412. 3555Smallest Subarray to Sort in Every Sliding WindowLocked
  413. 3557Find Maximum Number of Non Intersecting SubstringsWatch
  414. 3572Maximize Y‑Sum by Picking a Triplet of Distinct X‑ValuesWatch
  415. 3576Transform Array to All Equal ElementsWatch
  416. 3587Minimum Adjacent Swaps to Alternate ParityWatch
  417. 3588Find Maximum Area of a TriangleWatch
  418. 3600Maximize Spanning Tree Stability with UpgradesWatch
  419. 3605Minimum Stability Factor of ArrayWatch
  420. 3627Maximum Median Sum of Subsequences of Size 3Watch
  421. 3628Maximum Number of Subsequences After One InsertingWatch
  422. 3630Partition Array for Maximum XOR and ANDWatch
  423. 3633Earliest Finish Time for Land and Water Rides IWatch
  424. 3635Earliest Finish Time for Land and Water Rides IIWatch
  425. 3638Maximum Balanced ShipmentsWatch
  426. 3645Maximum Total from Optimal Activation OrderWatch
  427. 3675Minimum Operations to Transform StringWatch
  428. 3680Generate ScheduleWatch
  429. 3681Maximum XOR of SubsequencesWatch
  430. 3684Maximize Sum of At Most K Distinct ElementsWatch
  431. 3689Maximum Total Subarray Value IWatch
  432. 3691Maximum Total Subarray Value IIWatch
  433. 3695Maximize Alternating Sum Using SwapsWatch
  434. 3711Maximum Transactions Without Negative BalanceLocked
  435. 3720Lexicographically Smallest Permutation Greater Than TargetWatch
  436. 3723Maximize Sum of Squares of DigitsWatch
  437. 3724Minimum Operations to Transform ArrayWatch
  438. 3727Maximum Alternating Sum of SquaresWatch
  439. 3730Maximum Calories Burnt from JumpsLocked
  440. 3732Maximum Product of Three Elements After One ReplacementWatch
  441. 3745Maximize Expression of Three ElementsWatch
  442. 3752Lexicographically Smallest Negated Permutation that Sums to TargetWatch
  443. 3763Maximum Total Sum with Threshold ConstraintsLocked
  444. 3767Maximize Points After Choosing K TasksWatch
  445. 3776Minimum Moves to Balance Circular ArrayWatch
  446. 3780Maximum Sum of Three Numbers Divisible by ThreeWatch
  447. 3781Maximum Score After Binary SwapsWatch
  448. 3785Minimum Swaps to Avoid Forbidden ValuesWatch
  449. 3789Minimum Cost to Acquire Required ItemsWatch
  450. 3796Find Maximum Value in a Constrained SequenceWatch
  451. 3800Minimum Cost to Make Two Binary Strings EqualWatch
  452. 3806Maximum Bitwise AND After Increment OperationsWatch
  453. 3810Minimum Operations to Reach Target ArrayWatch
  454. 3816Lexicographically Smallest String After Deleting Duplicate CharactersWatch
  455. 3849Maximum Bitwise XOR After RearrangementWatch
  456. 3851Maximum Requests Without Violating the LimitLocked
  457. 3854Minimum Operations to Make Array Parity AlternatingWatch
  458. 3858Minimum Bitwise OR From GridWatch
  459. 3868Minimum Cost to Equalize Arrays Using SwapsWatch
  460. 3891Minimum Increase to Maximize Special IndicesWatch
  461. 3897Maximum Value of Concatenated Binary SegmentsWatch
  462. 3914Minimum Operations to Make Array Non DecreasingWatch
  463. 3919Minimum Cost to Move Between IndicesWatch
  464. 3927Minimize Array Sum Using Divisible ReplacementsWatch
  465. 3946Maximum Number of Items From Sale IWatch
  466. 3947Maximum Number of Items From Sale IIWatch
  467. 3948Lexicographically Maximum MEX ArrayWatch
  468. 3952Maximum Total Value of Covered IndicesWatch
  469. 3961Maximize Sum of Device RatingsWatch
  470. 3962Maximum Subarray Sum After at Most K SwapsWatch
  471. 3971Maximum Total ValueWatch
  472. 3974Maximum Total Sum of K Selected ElementsWatch
  473. 3980Minimum Operations to Transform Binary StringWatch
  474. 3993Maximum Value of an Alternating SequenceWatch
  475. 3994Minimum Adjacent Swaps to Partition ArrayWatch
  476. 3998Transform Binary String Using Subsequence SortWatch
  477. 4000Largest Integer With Given Digit SumWatch
  478. 4008Minimum Initial Strength to Defeat All MonstersWatch
  479. 4014Minimum Total Price After Applying DiscountsWatch
  480. 4025Minimize the Maximum Waiting Time at Synchronized Traffic LightsWatch
  481. 4026Maximum Gap Between StationsWatch
  482. 4036Lexicographically Largest String After Pair TransformationsWatch