![2. (3 pts) Given the following function, what is the worst-case Big-0 time complexity? O0 // Prints all subarrays in arr[0..n-1] void subArray (int arrll, int n) // Pick starting point for (int 1-0; i <n; i++) // Pick ending point for (int j-i; j<n; j++) // Print subarray between current starting // and ending points for (int k-i; k<-j; k++) cout<< arr[k] << cout << endl;](../../../media.cheggcdn.com/media/421/421339dc-5e1f-4b2e-b37c-96336567f68e/phpVb2a8Z.png)
2. (3 pts) Given the following function, what is the worst-case Big-0 time complexity? O0 // Prints all subarrays in arr[0..n-1] void subArray (int arrll, int n) // Pick starting
PayPal Gateway not configured
PayPal Gateway not configured
![2. (3 pts) Given the following function, what is the worst-case Big-0 time complexity? O0 // Prints all subarrays in arr[0..n-1] void subArray (int arrll, int n) // Pick starting point for (int 1-0; i <n; i++) // Pick ending point for (int j-i; j<n; j++) // Print subarray between current starting // and ending points for (int k-i; k<-j; k++) cout<< arr[k] << cout << endl;](../../../media.cheggcdn.com/media/421/421339dc-5e1f-4b2e-b37c-96336567f68e/phpVb2a8Z.png)
2. (3 pts) Given the following function, what is the worst-case Big-0 time complexity? O0 // Prints all subarrays in arr[0..n-1] void subArray (int arrll, int n) // Pick starting
PayPal Gateway not configured
PayPal Gateway not configured