+ 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 Odpowiedź
+ 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