34 ms·
That passage was the inspiration for someone's blog to present a challenge and see how many people could pass the test. https://reprog.wordpress.com/2010/04/19
by mark-r 5y ago
That passage was the inspiration for someone's blog to present a challenge and see how many people could pass the test.
https://reprog.wordpress.com/2010/04/19/are-you-one-of-the-10-percent/ https://reprog.wordpress.com/2010/04/19/are-you-one-of-the-1...
Covered by HN at the time: https://news.ycombinator.com/item?id=1277459 https://news.ycombinator.com/item?id=1277459
My own solution was in Python, so it didn't fall prey to the very common integer overflow error. Python has the amazing and handy property that integers don't overflow.