What is the Big Oh notation in the following code? public static void m(int n) { int a = 0; for(int i = 0; i
Posted: Tue Jul 12, 2022 8:16 am
What is the Big Oh notation in the following code? public static void m(int n) { int a = 0; for(int i = 0; i<n; i++) } for(int j = 0; j<n; j++) a=i*j; for(int k = 0; k<n; k++) a = a +k;
Posted: Tue Jul 12, 2022 8:16 am
What is the Big Oh notation in the following code? public static void m(int n) { int a = 0; for(int i = 0; i<n; i++) } for(int j = 0; j<n; j++) a=i*j; for(int k = 0; k<n; k++) a = a +k;