Ad
  • Custom User Avatar

    Use a copy (read the Ruby docs about how to make one) so your function doesn't mutate it and the expected result is right.
    The control function use the input values your function left, so after you removed the chars it returns false instead of true.

  • Custom User Avatar

    Strings are mutable in Ruby, if your code fails the random tests I'm almost sure, you're mutating the input values.