#greedy
Read more stories on Hashnode
Articles with this tag
Problem: You are assigned to put some amount of boxes onto one truck. You are given a 2D array boxTypes, where boxTypes[i] = [numberOfBoxesi,...
Problem: You are given an array of people, people, which are the attributes of some people in a queue (not necessarily in order). Each people[i] =...
Problem: A string s is called good if there are no two different characters in s that have the same frequency. Given a string s, return the ...
Problem: A decimal number is called deci-binary if each of its digits is either 0 or 1 without any leading zeros. For example, 101 and 1100 ...
Problem: There are n different online courses numbered from 1 to n. You are given an array courses where courses[i] = [durationi, lastDayi] ...
Problem: You are given an integer array heights representing the heights of buildings, some bricks, and some ladders. You start your journey from...