Big O notation for these functions

前端 未结 0 1062
广开言路
广开言路 2020-11-22 00:32

I want to solve that question but I am not sure if I am right or not. I found O(n^2-n)=O(n^2)

double fact(long i)
{
if (i==1 || i==0) return i;
else return i*         


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