Contest 2 - Hints to Problems [OFFICIAL]

I have the same question, because as per question we have to print longest prefix but here there is an invalid prefix. I implemented it this way but its giving me wrong answer, there should be more clarity on that “longest prefix”.

(post deleted by author)

Some of these are a bit late, but oh well :slight_smile: