minimize the runtime or the performance time of a code -


i wondering how can minimize runtime of following code

int j = 0;     while (j < n) {     int = 0;         while (i < m) {         cout << i*j;         i++;     }     j++; } 

there's not do, these mere loops. however, more efficient accumulate strings , print @ end printing tiny strings several times.


Comments

Popular posts from this blog

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -