Skip to content

Instantly share code, notes, and snippets.

@Carmen195
Carmen195 / buble_example.py
Created March 23, 2025 19:18
Nombres misteriosos buble sort
def b(l):
n = len(l)
for i in range(n):
for j in range(0, n-i-1):
if l[j] > l[j+1] :
l[j], l[j+1] = l[j+1], l[j]
# Ejemplo de uso
l = [64, 34, 25, 12, 22, 11, 90]
b(l)