CodeLink->https://ide.codingblocks.com/s/260373
LisModified problem not submit
please share the approach that u are using to solve the code
why are u sorting the temp array ??
This a simple DP question
please share approach then i can debugg the code easily
@chhavibansal This problem is from Fenwick Tree challanges part, and I have sort the array temp for cordinate compression use
u are not updating the tree array
u can refer to this