computer science
CSCI 1001. overview of. computer science. ALGORITHM EFFICIENCY III. Input : a list a 1 ,…,a n set g to n , ℓ to 1 while ℓ ≤ g do if a ℓ ≠ 0 then set ℓ to ℓ+ 1 else set g to g-1, r to ℓ+ 1 while r ≤ n do set a r-1 to a r , r to r+1
213 views • 9 slides