Sorting an array in O(n). Am i doing it right?

前端 未结 0 437
青春惊慌失措
青春惊慌失措 2020-12-20 16:25

I am trying to sort an array in O(n).Below is my code let me know if thats correct:

    inputArr = {10,30,20,50}
    listofzeros = [0] * 200
    for i in inpu         


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