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

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -