Time complexity of zip function in python?

前端 未结 0 911
無奈伤痛
無奈伤痛 2020-12-25 10:03

I have an array A of length N.

def f(A):
    for u, v in zip(A,A[1:]):
        print(u,v)

What is the time complexity of fun

相关标签:
回答
  • 消灭零回复
提交回复
热议问题