Time complexity where inner loop increases according to outer loop

前端 未结 0 1788
清歌不尽
清歌不尽 2020-11-29 11:21

I have to find the time complexity of the below code. But got confused as the j is increasing acccording to the value of i.

Else I thought it would be O(n2).



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