Ad
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    this approach is actually especially bad in terms of performances. you cannot "omptimize" that, you have to completely change the algorithm.

    Try to imagine how you would solve it by hand, but on very long strings. Then, try to implement that.