Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 40121

Longest Weird Sequence

$
0
0

I was doing this question.

http://www.codechef.com/problems/LWS
Finding longest weird subsequence.

My approach is to first find LIS and then LDS from the remaining string.
I know that this approach is wrong, but please anybody explain me why ??
I tried to find a counter example but failed.

Thank You. :)


Viewing all articles
Browse latest Browse all 40121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>