News for hackers. Stuff that matters.
Re:A surprisingly hard CS problem: sums of square roots (2018) by ismayilzadan on Monday January 24, 2022 @10:47AM (#30059068)
If question asked for just returning the sum, then yea, that would be acceptable. However, the question requires the comparison of sums. To decide which one is actually larger, 5-6 digits is not enough, even "practically".
Re:A surprisingly hard CS problem: sums of square roots (2018) by parhamn on Monday January 24, 2022 @11:26AM (#30059767)
It's not really different. If you were given the sums in the first operation to 5-6 digits and it was acceptable error margin, the comparison is within that acceptable error margin too, it's just this time the error led to a wrong binary not a wrong decimal.