4 ms·
Yes, it is faster for small integer values. Most numbers aren't small integer values. Test questions are usually designed to give nice clean answers but the rea
by fredophile 12y ago
Yes, it is faster for small integer values. Most numbers aren't small integer values. Test questions are usually designed to give nice clean answers but the real world isn't like that. They were trying to test your ability to solve quadratic equations in the general case. Your approach doesn't demonstrate that ability.