Time efficiency of the algorithm (big O) JavaScript

前端 未结 0 369
予麋鹿
予麋鹿 2020-12-02 23:30

I have my programm done and I would like to find out it\'s time efficiency.

For this code it\'s O(A+B), where A = arr.length-1 and B=(arr.length - k+1)*n, isn`t it?

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