Split an array into three non-empty parts where the first is a prefix of the second, or the second a prefix of the third. How many splits work?
Split an array into three non-empty parts where the first is a prefix of the second, or the second a prefix of the third. How many splits work?
Opens with the full question.