#what
1 messages · Page 1 of 1 (latest)
max could be anything, this is just doing max - max + a + b
wdym?
well I mean that you can set max to whatever, the underlying math is just max-max+a+b which is just a+b
it only has subtraction
and the max is the signed int maximum
Bruh
Don't drop math it's important
What is substraction but the addition of the opposite
Huh
this is why learn math
Yup learn math man,
Max-((max-a)-b)
Max-(max-a-b)
Max-max+a+b
(Max-max)+(a+b)
(0)+(a+b)
Just, (a+b)
Yes; that’s the point
This has nothing to do with integer overflow
And if u are surprised by -(-x)=x perhaps u should go back to kindergarten
I was trying to make an add function with only subtraction
Have u tried x - (-y)
How old are u
Yes
No