Optimize bubbe sort (#417) · wxpython/algorithms@89aabde · GitHub
Skip to content

Commit 89aabde

Browse files
VARoDeKgoswami-rahul
authored andcommitted
Optimize bubbe sort (keon#417)
* Optimize bubbe sort - as after each step of 'outer-loop', one number reaches to its right position. Thus inner loop does not need to run for 'n' times in every cycle of 'outer-loop'. * Followed PEP for PR keon#417
1 parent 30ca4ae commit 89aabde

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

algorithms/sort/bubble_sort.py

Lines changed: 3 additions & 2 deletions

0 commit comments

Comments
 (0)