Question: considr an array A[1..n] x
considr an array A[1..n]
x <- 8;
for i = 1 to n do
if A[i] = 4
then
x--
else
for j = 1 to n do
for k = 1 ton do
x++
worstcase and best case of this algorithm
(no explnation necessay)...(need in 5 minutes)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
