✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
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.