Loading...
Engaged Employer
What sorting algorithm I would use for sorting an array?
Anonymous
Depends on the size of the array. Insertion sort for small, quick sort for large
Quick sort
Also, if array is in ascending or descending order QS will be n^2. Would be better to use merge sort.
Check out your Company Bowl for anonymous work chats.
Get actionable career advice tailored to you by joining more bowls.
Stay ahead in opportunities and insider tips by following your dream companies.
Get personalized job recommendations and updates by starting your searches.