The winner takes it all

Report a typo

You might be familiar with the work of the legendary Swedish pop band "ABBA". If not, this is a good opportunity to listen to some of their songs. However, even not knowing this band, you will be able to solve this problem.

A number of capital letters are given: ABBAABBABBABBABBAABBA. Count how many times the name of the band occurs in this sequence without overlaps.

An overlap happens when two different occurrences of the pattern have common elements.

Enter a number
___

Create a free account to access the full topic