Which of the following loop is most efficient to implement considering time complexity?

1
For (k = 0; k < n; k ++)
2
For (k = 1; k < n; k * = 5)
3
For (k = n; k > 0; k = sqrt (k))
4
All of the above

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation