only sample test case is passing…
Activity selection problem
hello @snehasai01
a) increase the size of both the array (check constraint of the problem to decide appropriate size)
a) declare ur vector inside while loop
still not able to pass test cases…
this else should not be there
check ur corrected code here-> https://ide.codingblocks.com/s/259188
1 Like