Hacker News new | ask | show | jobs
by mukundesh 1579 days ago
Would be good to copy from MkDocs Material

https://squidfunk.github.io/mkdocs-material/reference/code-b...

``` py hl_lines="2 3"

def bubble_sort(items):

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