370 views
0 votes
0 votes
I would want to ask a question that while doing the comparison of two algos based on time complexity it is said dat worst case is considered. No doubt it is, however if a code which seemingly looks as if it has a high time complexity, then while it's running time be calculated in powers of 2(in case of worst case input) comes out to be a better one. Kindly guide in this context. With some example to support ur answer. :). Thanx in advance.

Please log in or register to answer this question.

Related questions

1 votes
1 votes
1 answer
1