Difference between revisions of "Sandbox"
Sandbox
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
{{DISPLAYTITLE:sandbox}} | {{DISPLAYTITLE:sandbox}} | ||
− | < | + | <syntaxhighlight lang="python" line='line'> |
− | + | def quickSort(arr): | |
− | + | less = [] | |
− | + | pivotList = [] | |
− | + | more = [] | |
− | + | if len(arr) <= 1: | |
− | </ | + | return arr |
+ | else: | ||
+ | pass | ||
+ | </syntaxhighlight> | ||
<!-- | <!-- |
Revision as of 09:56, 13 October 2017
1def quickSort(arr):
2 less = []
3 pivotList = []
4 more = []
5 if len(arr) <= 1:
6 return arr
7 else:
8 pass
English
RSS
-->