diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 6b04065d8..3c30913fd 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -49,3 +49,5 @@ Max Weinstein Gibus Wearing Brony
Arun Sahadeo +
+NIFR91 diff --git a/book.json b/book.json index fac21edc6..5d647f2b8 100644 --- a/book.json +++ b/book.json @@ -116,7 +116,12 @@ { "lang": "lua", "name": "Lua" + }, + { + "lang": "crystal", + "name": "Crystal" } + ] } } diff --git a/contents/bubble_sort/bubble_sort.md b/contents/bubble_sort/bubble_sort.md index 2a08b628c..d844018dd 100644 --- a/contents/bubble_sort/bubble_sort.md +++ b/contents/bubble_sort/bubble_sort.md @@ -40,6 +40,8 @@ This means that we need to go through the vector $$\mathcal{O}(n^2)$$ times with [import:2-13, lang:"ti-83_basic"](code/ti83basic/BUBLSORT.txt) {% sample lang="ruby" %} [import:3-13, lang:"ruby"](code/ruby/bubble.rb) +{% sample lang="crystal" %} +[import:1-11, lang:"crystal"](code/crystal/bubble.cr) {% endmethod %} ... And that's it for the simplest bubble sort method. @@ -85,6 +87,8 @@ Program.cs [import, lang:"ti-83_basic"](code/ti83basic/BUBLSORT.txt) {% sample lang="ruby" %} [import, lang:ruby"](code/ruby/bubble.rb) +{% sample lang="crystal" %} +[import, lang:"crystal"](code/crystal/bubble.cr) {% endmethod %}