Y
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
omegalulw
1471 days ago
They probably meant num * num > x * x
link
dhosek
1471 days ago
Which is still wrong since num = 3, x = -4 should be true.
link