DSA Advanced Problems

Course Schedule III

Given courses represented by a duration and a closing day, take courses one at a time from day zero and return the maximum number that can be completed by their individual deadlines.