What type of algorithm is the following code?
n = len(myList)while n > 1: i = 1 while i < n: if myList[i] < myList[i - 1]: swap(myList, i, i - 1) i += 1 n -= 1
A. linear sort
B. bubble sort
C. insertion sort
D. selection sort
Answer: B
You might also like to view...
Using which Internet security best practice is information not saved by the browser, such as pages that are visited will not be recorded to history or the address bar?
A. clearing the cache B. downloading files C. controlling cookies D. private browsing
The usual join between tables is a(n) ________ relationship
Fill in the blank(s) with correct word
What type of update service can Apple users take advantage of to update their operating systems via wireless carriers?
A. OTG B. COPE C. OTA D. VDI
Which of the following best describes a hashtag?
A. Another term for meta data. B. An online encyclopedia. C. A word or phrase that creates an easily searched group of related messages. D. An online journal or diary.