Ad
  • Custom User Avatar

    Very good challenge, took me quite a bit of brainpower to figure it out... hoping to encounter more like this.

    Creating this solution was both enlightening and challenging, especially when it came to handling edge cases. One key complexity arose from dealing with scenarios where there was only one unique character in the input string. The original instructions left room for interpretation on this specific case, and my initial approach ended up returning an empty list, which didn't align with the test expectations.

  • Custom User Avatar

    This! I tend to use the newline here and it should accept such a solution.