Question: what is time complexity of the following code? void function ( ) { int sum = 0 ; for ( int i = 1 ;
Step by Step Solution
3.34 Rating (154 Votes )
There are 3 Steps involved in it
Lets analyze the time complexity of the given code 1 The outer loop runs from ... View full answer
Get step-by-step solutions from verified subject matter experts
