4 ms·
I was wrong! I failed FizzBuzz! The English 'and' doesn't have the same precedence as in software - it actually goes in the opposite direction. What it does
by vanusa 5y ago
I was wrong! I failed FizzBuzz!
The English 'and' doesn't have the same precedence as in software - it actually goes in the opposite direction. What it does in English is this:
Find the smallest prime number that (
(is divisible by 7) and (is divisible by 13)
)
The point I was trying to make was is: the English meaning of this sentence is unambiguous. And it's obvious the algorithm here in no way understands this meaning. It's just dissecting parse trees, and hitting the shuffle button.