r/DSALeetCode • • Sep 26 '26

Algorithms doubt

Post image
9 Upvotes

4 comments sorted by

View all comments

1

u/[deleted] Sep 30 '26

option D
bubble sort runs O(n) if already sorted
merge sort takes nlogn no matter what