plz check this https://ide.codingblocks.com/s/197465
Regarding the complilation
@aslesha.j7
please check ur updated code here -> https://ide.codingblocks.com/s/197476
a) i have increased array a size
b) removed extra for loop
rest evrthing is correct in ur code
why you increased the array size?
and if we enter t==1 then in while loop t is t-- then it becomes 0 then how is it working?
@aslesha.j7
a) n can be upto 1000 thats why increased array size
b) in while(t–) first value of t will be checked and then decreament will be performed thats why for t =1 it will run 1 time
thank you for clearing my major doubt
https://ide.codingblocks.com/s/197535 link to my updated code as it is not passing the test cases. Can you tell me where the problem is?
its about the activity selection problem
@aslesha.j7
hello aslesha,
ur code is correct dont why one case is getting wa. pls try to do it with inbuilt sort function
but I checked my sorting and it is correct
how does it matter, I mean how does it passes the test cases?
it is still not passing any of the test cases. Plz check.
it is showing an error
pls try again .
it is working

btw what error u r getting
it shows you green tick on test cases while it shows me a cross
okay its done. I got it. Actually I have been printing the cases too. Thank you so much.
… 
