Ad
  • Default User Avatar

    I'm not sure this solution even works.. there are more subtraction going on than described.. and why would you go through every edge case instead of applying some logic of addition and subtraction?