Python Bubble Sort Template

Descripción

Plantilla de bubble sort


File Template: ❌


Prefix

sort:bubble


Scopes

python


Snippet de código

for i in range(len($1) - 1):
	for j in range(len($1) - i - 1):
		if $1[j] > $1[j + 1]:
			$1[j], $1[j + 1] = $1[j + 1], $1[j]