Ad
  • Default User Avatar
  • Custom User Avatar

    No, it's not flawed, but rather your solution did not pass because you mutated the input array. Mutating the input object is never a good practice anyway (undocumented side effects are just bad bad bad), so you have nobody but yourself to blame for this.

    By the way, seriously, I really don't want to play Codewars Fun: Arrogance every day. It's frustrating.