time complexity of selection sort and bubble sort if the arry is sorted are
Answers
Answered by
0
Explanation:
Differences between Bubble sort and Selection sort
Bubble sort Selection sort
The time complexities in best case and worst case are O(n) and O(n2) respectively. The time complexity in both best and worst cases is O(n 2).
Similar questions
Hindi,
1 day ago
Math,
1 day ago
Science,
2 days ago
Environmental Sciences,
8 months ago
Social Sciences,
8 months ago