Question: Question about counting primitive operations I want to know why If statement excute 2(n-1) and whats inside is 0..2(n-1)? With explanation if possible I have

Question about counting primitive operations

I want to know why If statement excute 2(n-1) and whats inside is 0..2(n-1)? With explanation if possibleQuestion about counting primitive operations I want to know why If statement

I have struggle with these kind of questions

public static int max(int a[]) not nt1 cus we sem operations fat int m=a[0]; & for (int i=1;im)s m=a[i];

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!