All past exam questions · Submit to see grading & explanations
O(1), O(n), O(n²),
O(n log n)).| Statement | Your Big-O Answer |
|---|---|
| The number of exchanges in a sorted data set using Insertion Sort. | |
| The space requirements in Merge Sort, assuming the worst-case scenario is happening. | |
| The runtime of Quick Sort on reverse-sorted data if the pivot is chosen to be the last element. | |
| Number of data movements required by Selection Sort if the data set is already sorted. |
[ G | A | F | D | Z | E | C | R ]
[ 10 | 5 | 9 | 3 | 12 | 7 | 20 | 8 ]
stringLength method
you wrote in Q12, and justify your answer.[ RUH | AMM | DMM | JED | KWI | DXB | SFO ]
Scroll up to see detailed feedback under each question.