{"id":38235,"date":"2016-10-24T02:02:24","date_gmt":"2016-10-24T07:02:24","guid":{"rendered":"http:\/\/chebasquared.wordpress.com\/?p=225"},"modified":"2016-10-24T02:02:24","modified_gmt":"2016-10-24T07:02:24","slug":"bubblesorting-things","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101fall2016\/syndicated\/bubblesorting-things\/","title":{"rendered":"BubbleSorting things"},"content":{"rendered":"<p class=\"syndicated-attribution\"><em> --Originally published at <a href=\"https:\/\/chebasquared.wordpress.com\/2016\/10\/24\/bubblesorting-things\/\"><a href=\"https:\/\/chebasquared.wordpress.com\">Monty Python and the Blogging Tale<\/a><\/a><\/em><br \/><\/p>\n<p>So one of Ken challenges required arranging numbers in order; I knew how because it was not the first time I have used a BubbleSort, but one thing that I never learned was to arranging list in alphabetical order&#8230; thus, here are my codes.<\/p>\n<p>Bubble sort for numbers, it was super easy:<\/p>\n<p><img class=\"alignnone size-full wp-image-229\" src=\"https:\/\/chebasquared.files.wordpress.com\/2016\/10\/random1.png?w=665\" alt=\"random\" srcset=\"https:\/\/chebasquared.files.wordpress.com\/2016\/10\/random1.png 354w, https:\/\/chebasquared.files.wordpress.com\/2016\/10\/random1.png?w=150 150w, https:\/\/chebasquared.files.wordpress.com\/2016\/10\/random1.png?w=300 300w\" sizes=\"(max-width: 354px) 100vw, 354px\"   \/><\/p>\n<p>And the output:<\/p>\n<p><img class=\"alignnone size-full wp-image-232\" src=\"https:\/\/chebasquared.files.wordpress.com\/2016\/10\/bubble.png?w=665\" alt=\"bubble\" srcset=\"https:\/\/chebasquared.files.wordpress.com\/2016\/10\/bubble.png 430w, https:\/\/chebasquared.files.wordpress.com\/2016\/10\/bubble.png?w=150 150w, https:\/\/chebasquared.files.wordpress.com\/2016\/10\/bubble.png?w=300 300w\" sizes=\"(max-width: 430px) 100vw, 430px\"   \/><\/p>\n<p>And now for the alphabetical sort:<\/p>\n<p><img class=\"alignnone size-full wp-image-235\" src=\"https:\/\/chebasquared.files.wordpress.com\/2016\/10\/bubble1.png?w=665\" alt=\"bubble\" srcset=\"https:\/\/chebasquared.files.wordpress.com\/2016\/10\/bubble1.png 603w, https:\/\/chebasquared.files.wordpress.com\/2016\/10\/bubble1.png?w=150 150w, https:\/\/chebasquared.files.wordpress.com\/2016\/10\/bubble1.png?w=300 300w\" sizes=\"(max-width: 603px) 100vw, 603px\"   \/><\/p>\n<p>And the ouput:<\/p>\n<p><img class=\"alignnone size-full wp-image-238\" src=\"https:\/\/chebasquared.files.wordpress.com\/2016\/10\/alph.png?w=665\" alt=\"alph\" srcset=\"https:\/\/chebasquared.files.wordpress.com\/2016\/10\/alph.png?w=665 665w, https:\/\/chebasquared.files.wordpress.com\/2016\/10\/alph.png?w=150 150w, https:\/\/chebasquared.files.wordpress.com\/2016\/10\/alph.png?w=300 300w, https:\/\/chebasquared.files.wordpress.com\/2016\/10\/alph.png?w=768 768w, https:\/\/chebasquared.files.wordpress.com\/2016\/10\/alph.png 815w\" sizes=\"(max-width: 665px) 100vw, 665px\"   \/><\/p>\n<p>Easier than I thought.<\/p><br \/>  <a rel=\"nofollow\" href=\"http:\/\/feeds.wordpress.com\/1.0\/gocomments\/chebasquared.wordpress.com\/225\/\"><img alt=\"\" border=\"0\" src=\"http:\/\/feeds.wordpress.com\/1.0\/comments\/chebasquared.wordpress.com\/225\/\" \/><\/a> <img alt=\"\" border=\"0\" src=\"https:\/\/pixel.wp.com\/b.gif?host=chebasquared.wordpress.com&#038;blog=115349857&%23038;post=225&%23038;subd=chebasquared&%23038;ref=&%23038;feed=1\" width=\"1\" height=\"1\" \/>","protected":false},"excerpt":{"rendered":"<p>&#8211;Originally published at Monty Python and the Blogging Tale So one of Ken challenges required arranging numbers in order; I knew how because it was not the first time I have used a BubbleSort, but one thing that I never learned was to arranging list in alphabetical order&#8230; thus, here are my codes. Bubble sort &hellip; <a href=\"https:\/\/kenscourses.com\/tc101fall2016\/syndicated\/bubblesorting-things\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">BubbleSorting things<\/span><\/a><\/p>\n","protected":false},"author":43,"featured_media":229,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,4],"tags":[303,304,79,80,24,33],"class_list":["post-38235","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blogs","category-syndicated","tag-alphabet","tag-bubblesort","tag-chebacheba","tag-kencourses","tag-python","tag-tc101"],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/posts\/38235","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/users\/43"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/comments?post=38235"}],"version-history":[{"count":12,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/posts\/38235\/revisions"}],"predecessor-version":[{"id":42999,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/posts\/38235\/revisions\/42999"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/media?parent=38235"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/categories?post=38235"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/tags?post=38235"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}