https://www.codechef.com/viewsolution/28251504
I think i have done everything right …
That’s not a link to your submission
Sorry again:sweat_smile:
1 Like
The formatting of that code
The idea behind the code is very easy. Keep in mind that the question asks for a subsequence and not a substring. Compare these definitions and build on the idea.
2 Likes