✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Consider the algorithm below.Algorithm func_1(s){ size = s.length; y = 0; for x = 0 to size - 1 while (y < size and s[x] < s[y]) do y += 1;}Compute the time Complexity of this algorithm by assuming that the number of elements in the array ‘s’ is n.