✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Consider the following code:
for (int i = 0; i < 100; i++) {
x = 10 * 20;
}
After optimisation:
x = 10 * 20;
for (int i = 0; i < 100; i++) {
// no multiplication inside loop
}
If one multiplication takes 2 units of time, how
much time is saved?