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