I need help with this two questions, its not hard for experts I guess, here it is:
Determine the time of executing the following algorithm fragment:
a)
if (x == 0) then
for i = 1 to n do
a[i] = i;
b)
i = 1;
repeat
a[i] = b[i] + c[i];
i = i +1;
until (i == n);
Thanks in advance