What is the best sorting technique to sort almost sorted list? Justify your answer.

Explanation

Timsort has a worst-case time complexity of O(n log n) and a best-case time complexity of O(n), making it suitable for almost sorted lists.


โฌ† Related Topic

View Topic Hub โ†’

๐Ÿ“˜ Syllabus

View KERALA UNIVERSITY Class 3 Syllabus โ†’

๐Ÿ“ Practice Questions

Practice Previous Year Questions โ†’

๐Ÿค– Practice with AI

Generate Practice Question Paper โ†’


๐Ÿ“š Related Concepts