algorithm - Time complexity pseudo code -
i want calculate time complexity of following code :
for(i=0;i<n;i++){ func(); . // other o(1) operations . }
where func() has complexity of o(k).
the time complexity o(k*n) then.
Comments
Post a Comment