Skip to content

Conversation

@Nishithaaa0905
Copy link

This pull request improves the existing Bubble Sort algorithm by adding an early-stop optimization.
If no elements are swapped during a pass, the function exits early, reducing unnecessary iterations.
Includes example usage for clarity.

@lazarljubenovic
Copy link

LLMs at home be like

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants