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

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -