Spoj Problem: LIS2
I tried this using 2-D BIT, with a time complexity: O(n*logn*logn) but i am getting TLE.
My submitted code: http://ideone.com/kaYVz1
Any ideas?
Spoj problem LIS2 TLE
Spoj Problem: LIS2
I tried this using 2-D BIT, with a time complexity: O(n*logn*logn) but i am getting TLE.
My submitted code: http://ideone.com/kaYVz1
Any ideas?