Ad
  • Custom User Avatar

    sorry for necro-replying

    Can you comment on my solution, which benchmarks around 4 times faster than either yours or OP's solution? I tried to avoid iterating over anything more than once, and to avoid allocations where possible

  • Custom User Avatar

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