Difference between revisions of "Sandbox3"
Jump to navigation
Jump to search
(Created page with "<syntax-highlight> 1 2 </syntax-highlight>") |
|||
| Line 1: | Line 1: | ||
| − | < | + | <syntaxhighlight lang="python" style="border:3px dashed blue"> |
| − | 1 | + | def quick_sort(arr): |
| − | + | less = [] | |
| − | </ | + | pivot_list = [] |
| + | more = [] | ||
| + | if len(arr) <= 1: | ||
| + | return arr | ||
| + | else: | ||
| + | pass | ||
| + | </syntaxhighlight> | ||
Revision as of 20:30, 18 January 2020
def quick_sort(arr):
less = []
pivot_list = []
more = []
if len(arr) <= 1:
return arr
else:
pass