Main Page: Difference between revisions
From ElixirBlocks
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<syntaxhighlight lang="python" line> | |||
def quick_sort(arr): | |||
<syntaxhighlight lang="python"> | less = [] | ||
pivot_list = [] | |||
more = [] | |||
if len(arr) <= 1: | |||
return arr | |||
else: | |||
</syntaxhighlight> | pass | ||
</syntaxhighlight> |
Revision as of 04:13, 8 March 2023
def quick_sort(arr): less = [] pivot_list = [] more = [] if len(arr) <= 1: return arr else: pass