Search Results

Searching for: big O notation

Individual Exercises

0 / 10

What type of error found on line 3?

public static int minVal(int[] y, int first, int last) { int bestSoFar = y[first]; // line 1 for (int...
0 / 10

What is the value of variable donuts after the following code executes?

int donuts = 6; donuts = donuts + 3; donuts = donuts * donuts; 
0 / 10

Complete the function getArraySize() so that it returns the size of the array passed in as an argument into the function. You cannot use...