code:https://ide.codingblocks.com/s/264631
how to remove tle in one test case.all other are passing
How to remove tle in one case
hello @bhaskar0_0
n is of order 10^5 ,
and clearly o(n^2) will give tle in worst case.
use BIT tree to answer lis effifiencly.
lis using bit
1 Like