Activity Selection Problem

is there anything wrong with code or testcases?


https://online.codingblocks.com/app/player/40516/content/55353/5280/code-challenge

@rohit267
hello rohit,
sort ur vector p according to finishing time and then call findNumActivities function.
rest of ur code is correct.

thank you :slight_smile: solved it after sorting it according to finish times.