I had to create a function for an assignment and I have no idea how to figure out the complexity of it. Could someone please explain the Big O notation of the following function and give a little explanation why (so I know next time). Thank you.
public static int findRange(int[] thisArray) {
int range = 0, max = 0, min = 0;
max = thisArray[0];
min = thisArray[3];
range = max - min;
return range;