Question: Q 1 Runtime 2 Points Grading comment: / / This method returns whether or not a pair of numbers, / / num 1 and num
Q Runtime
Points
Grading comment:
This method returns whether or not a pair of numbers,
num and num are between m and n respectively
boolean findPairint num int num int m int n
for int i ; i m; i
if num i
for int j ; j n; j
if num j
return true;
return false;
Question Worstcase runtime
Q Worstcase runtime
Point
Grading comment:
What is the worst case runtime of findPair?
Choice of :Omn
Choice of :Omn
Choice of :Omn
Choice of :Om
Choice of :On
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
