You need to sign in or sign up before continuing.×
Ad
  • Default User Avatar

    Why jesus? Because it is a long solution with 3 extra methods? Is there anything else glaringly wrong with this code? I have since learnt how to solve this in one line, but I am genuinely interested in your feedback so I can learn to be a better developer. Thanks :)