Problem resolved

This post was flagged by the community and is temporarily hidden.

1 Like

Its funny that first line of your code says

we either win, or we learn. XD

PS: I agree with you

1 Like

@maskmanlucifer I think you should output 0 if you find less than 2 occurrences of k rather than -1. See explanation after the sample output.

1 Like