CHEFSQ- wrong solution accepted

This question is from beginner section. It is accepting the wrong solution according to me. As my code accepted and it is showing yes for
1
6
1 2 4 3 5 6
3
2 3 4

as the question says favourite sequence should be present as a substring but it is accepting for presence of the elements in the normal sequence

1 Like

Edit:

Oh, I see what you mean: your solution doesn’t even check that it is a subsequence, but still gets AC. I guess we can add “weak testcases” to the list of flaws of that Problelm :slight_smile:

2 Likes

now you got me…