noob__coder's blog

By noob__coder, history, 6 years ago, In English

I was trying to solve this dp problem on spoj LIS2(http://www.spoj.com/problems/LIS2/). I am basically using finding longest increasing subsequence using binary search. This is discussed here(geeksforgeeks)(https://www.geeksforgeeks.org/longest-monotonically-increasing-subsequence-size-n-log-n/). In lower bound method in my code I am deciding based which point is lowest based on the distance of the point with origin. But it is giving me wrong answer ================================. Can someone help me. Thanks in advance.

Tags lis, dp
  • Vote: I like it
  • -4
  • Vote: I do not like it