Skip to content

Bubble Sort Scratch Implementation #610

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jul 17, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,11 @@ indent_size = 2
indent_style = space
indent_size = 4

# Scratch (text code)
[contents/*/code/scratch/*.txt]
indent_style = space
indent_size = 4

# Whitespace
[*.ws]
indent_style = space
Expand Down
6 changes: 6 additions & 0 deletions contents/bubble_sort/bubble_sort.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ This means that we need to go through the vector $$\mathcal{O}(n^2)$$ times with
[import:2-14, lang:"emojicode"](code/emojicode/bubble_sort.emojic)
{% sample lang="bash" %}
[import:2-21, lang:"bash"](code/bash/bubble_sort.bash)
{% sample lang="scratch" %}
<p>
<img class="center" src="code/scratch/bubble_sort.svg" width="400" />
</p>
{% endmethod %}

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

<script>
Expand Down
Loading