Ad
  • Default User Avatar

    I agree with @alemontree that this should NOT be voted as best practice. Granted my solution is nearly identical. However I am aware that this solution is suboptimal. I wish I could understand how to write this with at least linear efficiency. I will learn in time! It's good to make people aware of this so they can optimize their code!