Design a greedy algorithm which takes as input the number of turkeys n, and the n lists of intervals [a_i,b_i ], and outputs the maximum number of turkeys m that you can talk to. You are expected to write the pseudocode of your algorithm.

Solved
Show answers

Ask an AI advisor a question