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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!