Difference between revisions of "Sandbox"
From World Wide Wiegert Wiki - WWWW
Line 1: | Line 1: | ||
<syntaxhighlight lang="python"> | Code: | ||
{{ #tag: syntaxhighlight | | |||
<<noinclude/>syntaxhighlight lang="python"> | |||
def quick_sort(arr): | def quick_sort(arr): | ||
less = [] | less = [] | ||
Line 9: | Line 11: | ||
pass | pass | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| lang=python }} | |||
< | Result: | ||
<syntaxhighlight lang="python"> | |||
def quick_sort(arr): | def quick_sort(arr): | ||
less = [] | less = [] | ||
Line 20: | Line 23: | ||
pass | pass | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Supported languages: https://www.mediawiki.org/wiki/Extension:SyntaxHighlight#Supported_languages | |||
https://www.mediawiki.org/wiki/Extension:SyntaxHighlight#Supported_languages |
Revision as of 10:03, 25 September 2020
Code:
<syntaxhighlight lang="python">
def quick_sort(arr):
less = []
pivot_list = []
more = []
if len(arr) <= 1:
return arr
else:
pass
</syntaxhighlight>
Result:
def quick_sort(arr):
less = []
pivot_list = []
more = []
if len(arr) <= 1:
return arr
else:
pass
Supported languages: https://www.mediawiki.org/wiki/Extension:SyntaxHighlight#Supported_languages