What is the time complexity of Insertion Sort?
Q1. What is the time complexity of Insertion Sort?
Answer: O(n²)
Explanation: Insertion Sort has a worst-case time complexity of O(n²) due to its iterative approach, making it less efficient for large datasets.