Given A
, B
, C
, find any string of maximum length that can be created such that no 3
consecutive characters are same. There can be at max A
'a'
, B
'b'
and C
'c'
.
This is a companion discussion topic for the original entry at https://algo.monster/problems/longest_string_without_3_consecutive_characters/