retagged by
454 views
1 votes
1 votes

 

retagged by

1 Answer

1 votes
1 votes
T(n)=T(n-1)+1

complexity will be 1+1+1+1.....n times

=O(n)

so B is the answer

Related questions

1.1k
views
1 answers
3 votes
431
views
0 answers
1 votes
689
views
1 answers
1 votes
Prince Sindhiya asked Oct 23, 2018
689 views
Is there Any short cut to do these questions fast ?
430
views
1 answers
0 votes
Overflow04 asked Oct 9, 2022
430 views
how O($n^{2}$) in the last.(in the given solution).