501 views
–1 votes
–1 votes
What will be the time complexity of a function f(n) = n^-2  i.e. pow (n,-2) ?

1 Answer

1 votes
1 votes

f(n) = n-2 = 1/n2= 1/(nxn)  ie f(n) = 1/(nxn)

this can be done in 0(1).

No related questions found