Skip to content

Commit 4ac7b0b

Browse files
committed
added scratch to bubble sort.
1 parent ba1fecb commit 4ac7b0b

File tree

2 files changed

+3097
-0
lines changed

2 files changed

+3097
-0
lines changed

contents/bubble_sort/bubble_sort.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ This means that we need to go through the vector $$\mathcal{O}(n^2)$$ times with
6868
[import:2-14, lang:"emojicode"](code/emojicode/bubble_sort.emojic)
6969
{% sample lang="bash" %}
7070
[import:2-21, lang:"bash"](code/bash/bubble_sort.bash)
71+
{% sample lang="scratch" %}
72+
<p>
73+
<img class="center" src="/code/scratch/bubble_sort.svg" width="250" />
74+
</p>
7175
{% endmethod %}
7276

7377
... And that's it for the simplest bubble sort method.
@@ -141,6 +145,8 @@ Trust me, there are plenty of more complicated algorithms that do precisely the
141145
[import, lang:"emojicode"](code/emojicode/bubble_sort.emojic)
142146
{% sample lang="bash" %}
143147
[import, lang:"bash"](code/bash/bubble_sort.bash)
148+
{% sample lang="scratch"}
149+
The code snippet was taken from this [Scratch project](https://scratch.mit.edu/projects/316483792)
144150
{% endmethod %}
145151

146152
<script>

0 commit comments

Comments
 (0)