535
contributi
m (typo) |
m (→Attributi) |
||
Riga 231: | Riga 231: | ||
|<pre><syntaxhighlight lang="python"> | |<pre><syntaxhighlight lang="python"> | ||
def quick_sort(arr): | def quick_sort(arr): | ||
less = [] | less = [] | ||
pivot_list = [] | pivot_list = [] | ||
more = [] | more = [] | ||
if len(arr) <= 1: | if len(arr) <= 1: | ||
return arr | return arr | ||
</syntaxhighlight></pre> | </syntaxhighlight></pre> | ||
|<syntaxhighlight lang="python"> | |<syntaxhighlight lang="python"> | ||
Riga 256: | Riga 250: | ||
|<pre><syntaxhighlight lang="python" line> | |<pre><syntaxhighlight lang="python" line> | ||
def quick_sort(arr): | def quick_sort(arr): | ||
less = [] | less = [] | ||
pivot_list = [] | pivot_list = [] | ||
more = [] | more = [] | ||
if len(arr) <= 1: | if len(arr) <= 1: | ||
return arr | return arr | ||
</syntaxhighlight></pre> | </syntaxhighlight></pre> | ||
|<syntaxhighlight lang="python" line="1"> | |<syntaxhighlight lang="python" line="1"> | ||
Riga 290: | Riga 278: | ||
|<pre><syntaxhighlight lang="python" line start="55"> | |<pre><syntaxhighlight lang="python" line start="55"> | ||
def quick_sort(arr): | def quick_sort(arr): | ||
less = [] | less = [] | ||
pivot_list = [] | pivot_list = [] | ||
more = [] | more = [] | ||
if len(arr) <= 1: | if len(arr) <= 1: | ||
return arr | return arr | ||
</syntaxhighlight></pre> | </syntaxhighlight></pre> | ||
|<syntaxhighlight lang="python" line="1" start="55"> | |<syntaxhighlight lang="python" line="1" start="55"> | ||
Riga 315: | Riga 297: | ||
|<pre><syntaxhighlight lang="python" line start=3 highlight="1,5-7"> | |<pre><syntaxhighlight lang="python" line start=3 highlight="1,5-7"> | ||
def quick_sort(arr): | def quick_sort(arr): | ||
less = [] | less = [] | ||
pivot_list = [] | pivot_list = [] | ||
more = [] | more = [] | ||
if len(arr) <= 1: | if len(arr) <= 1: | ||
return arr | return arr | ||
</syntaxhighlight></pre> | </syntaxhighlight></pre> | ||
|<syntaxhighlight lang="python" line="1" start="3" highlight="1,5-7"> | |<syntaxhighlight lang="python" line="1" start="3" highlight="1,5-7"> | ||
Riga 341: | Riga 317: | ||
def quick_sort(arr): | def quick_sort(arr): | ||
less = [] | less = [] | ||
pivot_list = [] | pivot_list = [] | ||
more = [] | more = [] | ||
if len(arr) <= 1: | if len(arr) <= 1: | ||
return arr | return arr | ||
</syntaxhighlight></pre> | </syntaxhighlight></pre> |