PlaidMachine Learning Engineer · Take-home ProjectCodemia practiceGreedy on interval list
Given a list of intervals, each defined by a start and end time, implement a greedy algorithm to select the maximum number of non-overlapping intervals. Your function should take an array of intervals as input and return a list of selected intervals that do not overlap, ensuring optimal selection based on the earliest finishing time.