Search the courses, subjects, tracks, games and features, or jump straight to a page.
2 cards from this section. Quick, good the night before a test.
What is linear search?
Think of how you would search for a book on a shelf.
How does insertion sort work?
Consider how you might sort a hand of playing cards.
What is the time complexity of linear search?
Think about how you would find an item in a list by checking each one.
True or False: Binary search can be used on unsorted arrays.
Remember, binary search divides the array, so it needs order.
Given a list of unsorted names, write a function to sort these names using quick sort and explain its efficiency compared to other sorting methods.
Consider the choice of pivot and how that impacts the sorting speed.
Design an algorithm to find the second smallest number in an unsorted array after sorting it. Compare the performance with finding the same number using a linear search.
Think about the steps involved in both approaches.
5 more questions in this section. Enroll free to practise them all.
Enroll free