4 ms·
This isn’t correct for a=5, b=0, c=0. It would return true while OP’s example would return false
by cheepin 9y ago
This isn’t correct for a=5, b=0, c=0. It would return true while OP’s example would return false
- always_good 9y agoOh, I missed the "more than 1 integer". I was wondering why the other solutions were so awkward, thus needed to share my immense wisdom. I feel shame.
- mikeash 9y agoIf it makes you feel any better, there are surely other people who thought that way, and they'll be enlightened upon reading this comment chain.