Hacker News new | ask | show | jobs
by dhosek 1471 days ago
Your squared approach is wrong: greater_abs2(3, 4) returns true but should return false.
1 comments

They probably meant num * num > x * x
Which is still wrong since num = 3, x = -4 should be true.