Vedhachala's blog

By Vedhachala, history, 8 years ago, In English

The problem link is http://www.spoj.com/problems/LIS2/

I used the nlogn algorithm for longest increasing subsequence. This is my code http://ideone.com/rmaQSE#

I am getting the correct answer for the sample test case given in the problem in g++11 compiler. But i am getting wrong answer #1 for my submission in spoj. could someone go through my code and tell me where i am going wrong!

Full text and comments »

  • Vote: I like it
  • +5
  • Vote: I do not like it

By Vedhachala, history, 8 years ago, In English

The g++ compiler( version 4.9.2) in my system gives required output, but when tried submitting the first test case itself is failing. Please help me! This is my submission:16635171

Full text and comments »

  • Vote: I like it
  • -2
  • Vote: I do not like it