What is the average case time complexity of gnome sort?
(a) O(n)
(b) O(n^2)
(c) O(n log n)
(d) O(log n)
This question was posed to me in an interview for internship.
This intriguing question comes from Sorting in section Sorting of Data Structures & Algorithms II