Activity selection | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Activity selection

In greedy approach, activity selection is it necessary that we should enter the end time in ascending order. It is the basis of the algorithm or we can also sort it later.

26th Aug 2018, 10:08 PM
harshit
harshit - avatar
1 Answer
+ 1
I think that if the array isn't sorted first, it will cause indexing problems.
27th Aug 2018, 8:20 AM
Janningā­
Janningā­ - avatar