LisModified problem not submit

CodeLink->https://ide.codingblocks.com/s/260373

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
WhatsApp Image 2020-06-18 at 10.14.42 PM

u can refer to this

https://ide.codingblocks.com/s/260598WhatsApp Image 2020-06-18 at 10.20.48 PM

@chhavibansal ohh, i got my mistake thanks

1 Like