2071. Maximum Number of Tasks You Can Assign
UMPIRE - [U]nderstand the problem, ask questions and come up with corner test cases. - [M]atch the leetcode pattern - [P]lan to using pattern template and data structures - [I]mplement the code - [R]eview by running the example and corner test cases - [E]valuate time and space complexity Understand Return max number of tasks that can be completed using the the given wokers and pills. Brute force Brute is searching searching all possiblities Check if k number of tasks can be completed and iterate k from 0 to len(tasks) Check logic would be greedy logic either you get it or not....