Failing to pass 2 test cases for "chef and special dishes" from march long challenge.

algorithm
data-structure
dynamic-programming
march16
strings
subsequence

#1

I tried to solve thisproblem for march long challenge but my solution is failing to pass two test cases. Can anyone tell me what is bug in my code.


#2

Here: https://www.codechef.com/viewsolution/9716915

added

        if(l<=1)
            System.out.println("NO");

#3

@nilesh3105

Thank you.