Better HN
topnewbestaskshowjobs
Log inSign up

its_dario

10 karma · joined Feb 2, 2020 (6y ago) · 2 submissions

Submissions

comment 6y ago · link · parent

No, and that's not their point.

They're saying if they were to lie to their customers, they'd want to make sure they're deceiving Google. In that case, having an easy way to detect that it's Google would make that trivial.

comment 6y ago · link · parent

> Isn't this like... really, really basic?

Yeah, it's reasonably basic. For the problem as stated where there are only 1000 numbers to iterate over, though, I wouldn't have bothered wasting time thinking about it when the naive implementation is fast enough that it doesn't matter.

Why start with something more complicated (assuming you're going to program it rather than just solving it outright on paper) when the simple way works?