Python Question What is the time complexity of the following function? def mystery(lst): index = 0 while index


Python Question


What is the time complexity of the following function?


def mystery(lst):
    index = 0
    while index <>
        index2 = 0
        while index2 <>
            index2 = index2 + 1
        index = index + 1


a) Linear
b) Quadratic
c) Slower than quadratic
d) Faster than linear



Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here