3 ms·
Can I multiply a number by itself. This is a great clarifying question. Not for a total of 220!
by contingencies 6y ago
Can I multiply a number by itself. This is a great clarifying question.
Not for a total of 220!
- tomsmeding 6y agoWho said that the inputs where integers? :)
- amirkdv 6y agoFunny how everyone here, myself included, assumed the numbers were integers! I like the follow up question of "what if they are floats?" to see if the interviewee knows not to use `==` with floats.
- pmontra 6y ago220 = 2 * 2 * 5 * 11. There must be 2 * sqrt(5) * sqrt(11) in that list of numbers. It's about 14.8323969742. Easy to test for it.