Optimize this code (like what compiler would reconstruct an equivalent source code as): int fn (int a, int b) { int sum = 0; for(int i=4*a;i>0;i--) { sum+=b*i*i; } return sum; }
Utilisateur anonyme
One of them is replace 4*b with a<<2. But there are more ways I didn't find.