Question: If data is an integer array with n valid data items in it, what is the time complexity of the following fragment? int cnt -

 If data is an integer array with n valid data items

If data is an integer array with n valid data items in it, what is the time complexity of the following fragment? int cnt - ; for (int i-; i 100) cnt ; 3 O 0(1) O O(n^2) None of these Oln ig(n)) Oln

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!