All test cases not passing run time error showing

hi @G_rahil

take a look at constraints
they are large and your code time complexity is O(n^2)
hence it is giving TLE not run time error

try to solve it in O(nlogn )

still not able to understand how to implement the same

@G_rahil

doing LIS in nlogn is little bit tricky
first try to watch video from your course or from Youtube it will help

if your have further doubt in any step you can obviously ask

i will help you

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.