hear me out: what if we subtracted 2 from the number over and over again until its 1 or 0. like recursion! then, when it exists if its 0, then it must be even and if its 1, then its odd. and if we generate too many stack frames due to the number of function calls, we just say the number is really big.
View all comments
Show parent comment
50
u/lemao_squash Dec 08 '25
What? You're saying there's a better way to do this? Stop capping