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

python - Installing PyDev in eclipse is failed -

PHP OOP-based login system -

c# - Nested Internal Class with Readonly Hashtable throws Null ref exception.. on assignment -