(no title)
cmptrnerd6 | 2 years ago
Also I think the code could just multiply d by -1 which would "reverse the sign".
Even that has some edge cases that should be handled around the maximum value of an integer.
But the main thing to me is that as written this code is confusing and overcomplicating the easy part of the problem.
No comments yet.