Problem library

Greedy

All problems that are about greedy algorithms.

59 / 59 problems
Problem Solved
Find minimum time to finish all jobs II
greedy
Jan 24, 2023
Queue reconstruction by height
greedy
Jan 23, 2023
Minimum moves to reach target score
greedy
Jan 16, 2023
Maximum binary string after change
greedy
Jan 11, 2023
Minimum health to beat game
greedy
Jan 8, 2023
Assign cookies
greedy
Jan 7, 2023
Max increase to keep city skyline
greedy
Jan 6, 2023
Maximum ice cream bars
greedy heap
Jan 6, 2023
Minimum operations to make the array alternating
greedy array-and-hashmap
Jan 6, 2023
Most profit assigning work
greedy two-pointers
Jan 6, 2023
Minimum increment to make array unique
greedy
Dec 28, 2022
Minimum penalty for a shop
array-and-hashmap greedy
Dec 28, 2022
Maximum bags with full capacity of rocks
greedy
Dec 27, 2022
Shortest unsorted continuous subarray
greedy
Dec 26, 2022
Valid triangle number
greedy binary-search
Dec 24, 2022
Largest values from labels
greedy
Dec 22, 2022
Largest merge of two strings
greedy
Dec 21, 2022
Minimum initial energy to finish tasks
greedy
Dec 20, 2022
Minimum rounds to complete all tasks
greedy
Dec 17, 2022
Append k integers with minimal sum
greedy
Dec 14, 2022
Longest square streak in an array
greedy
Dec 12, 2022
Partition array such that maximum difference is k
greedy
Dec 10, 2022
Maximum number of non overlapping subarrays with sum equals target
greedy
Dec 8, 2022
Previous permutation with one swap
greedy
Dec 2, 2022
Maximum split of positive even integers
greedy
Nov 30, 2022
Partitioning into minimum number of deci binary numbers
greedy
Nov 30, 2022
Minimize product sum of two arrays
greedy
Nov 28, 2022
Maximum number of coins you can get
greedy queue
Nov 26, 2022
Minimize maximum pair sum in array
greedy
Nov 26, 2022
Minimum number of arrows to burst balloons
greedy
Nov 24, 2022
Broken calculator
greedy
Nov 23, 2022
Integer to english words
array-and-hashmap greedy
Nov 23, 2022
Maximum length of pair chain
greedy
Nov 20, 2022
Minimum time visiting all points
greedy
Nov 16, 2022
Maximum area of a piece of cake after horizontal and vertical cuts
greedy
Nov 15, 2022
Minimum money required before transactions
greedy
Nov 8, 2022
Maximum score from removing stones
greedy
Nov 4, 2022
Partition array into three parts with equal sum
greedy
Nov 4, 2022
Earliest possible day of full bloom
greedy
Oct 29, 2022
Can place flowers
greedy
Oct 23, 2022
Minimum number of operations to convert time
greedy
Oct 22, 2022
Maximum points you can obtain from cards
greedy
Oct 20, 2022
Reduction operations to make the array elements equal
greedy
Oct 18, 2022
Increasing triplet subsequence
greedy
Oct 11, 2022
Minimum time to make rope colorful
greedy
Oct 3, 2022
Destroying asteroids
greedy
Sep 30, 2022
Dota2 senate
greedy queue
Sep 30, 2022
Design an atm machine
greedy design
Sep 16, 2022
Minimum insertions to balance a parentheses string
stack greedy
Sep 16, 2022
Minimum number of flips to make the binary string alternating
greedy
Aug 26, 2022
Stamping the sequence
greedy
Aug 21, 2022
Partition labels
greedy
Aug 10, 2022
Hand of straights
greedy
Aug 9, 2022
Merge triplets to form target triplet
greedy
Aug 9, 2022
Valid parenthesis string
greedy
Aug 9, 2022
Gas station
greedy
Aug 8, 2022
Jump game II
greedy
Jul 22, 2022
Jump game
greedy
Jul 22, 2022
Maximum subarray
greedy
Jul 21, 2022