Scripting Basics: Difference between revisions
From San Andreas Multiplayer
				
				
				Jump to navigationJump to search
				
				
|  Created page with "<syntaxhighlight lang="python" line> def quick_sort(arr): 	less = [] 	pivot_list = [] 	more = [] 	if len(arr) <= 1: 		return arr 	else: 		pass </syntaxhighlight>" | No edit summary | ||
| (14 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| <syntaxhighlight lang=" | <syntaxhighlight lang="php" line> | ||
| def quick_sort(arr): | def quick_sort(arr): | ||
| 	less = [] | 	less = [] | ||
Latest revision as of 14:00, 3 November 2024
def quick_sort(arr):
	less = []
	pivot_list = []
	more = []
	if len(arr) <= 1:
		return arr
	else:
		pass