diff --git a/contents/bubble_sort/bubble_sort.md b/contents/bubble_sort/bubble_sort.md index 348819dc1..3a1bb7e9a 100644 --- a/contents/bubble_sort/bubble_sort.md +++ b/contents/bubble_sort/bubble_sort.md @@ -70,7 +70,7 @@ This means that we need to go through the vector $$\mathcal{O}(n^2)$$ times with [import:2-21, lang:"bash"](code/bash/bubble_sort.bash) {% sample lang="scratch" %}

- +

{% endmethod %} diff --git a/contents/bubble_sort/code/scratch/bubble_sort.png b/contents/bubble_sort/code/scratch/bubble_sort.png deleted file mode 100644 index 1460763d8..000000000 Binary files a/contents/bubble_sort/code/scratch/bubble_sort.png and /dev/null differ diff --git a/contents/bubble_sort/code/scratch/bubble_sort.svg b/contents/bubble_sort/code/scratch/bubble_sort.svg new file mode 100644 index 000000000..a2e863558 --- /dev/null +++ b/contents/bubble_sort/code/scratch/bubble_sort.svg @@ -0,0 +1 @@ +defineBubbleSortdefineBubbleSortsetit1to1setit2to1repeatlengthofListrepeatlengthofList-1ifitemit2+1ofList<itemit2ofListthensettmptoitemit2ofListreplaceitemit2ofListwithitemit2+1ofListreplaceitemit2+1ofListwithtmpchangeit2by1setit2to1changeit1by1 \ No newline at end of file