How does one go about to calculate the big-o notation of a


How does one go about to calculate the Big-O Notation of a code fragment?

Using the code fragment bellow please give a full and step by step explanation of how to write Big-O Notation works please:

for (int i = 1; i < n; i++)

{

sum++;

total += I;

}

Request for Solution File

Ask an Expert for Answer!!
Other Subject: How does one go about to calculate the big-o notation of a
Reference No:- TGS0642639

Expected delivery within 24 Hours