You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is an optimized version of the original program using the built-in `sort` method, which significantly improves the performance.
The built-in `sort` method uses Timsort, which has an average case time complexity of O(n log n), much better than the O(n^2) time complexity of bubble sort used in the original code.
0 commit comments