Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Your squared approach is wrong: greater_abs2(3, 4) returns true but should return false.


They probably meant num * num > x * x


Which is still wrong since num = 3, x = -4 should be true.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: