Sign up for a Heroku account and install the toolbelt if you haven't already.
In your Gemfile, add
// Pseudocode | |
- As always we'll start by defining our function which takes an array as a parameter - as reviewed in the logic above: function bubbleSort(array){}; | |
- Model the parent loop to iterate upto n-1 limits | |
- Model the inner loop to deduct each pass from the already set limit of the parent loop | |
- As we loop through the array we are going to be comparing and switching our array elements - when necessary, that is, until our largest number bubbles up to the top/end. | |
- With the two loops in place, we now need to build out the code to compare and switch neighbouring numbers - if necessary. | |
// Code |
Sign up for a Heroku account and install the toolbelt if you haven't already.
In your Gemfile, add
Sign up to Heroku.
Then install the Heroku Toolbelt. It is a command line tool to manage your Heroku apps
After installing the Heroku Toolbelt, open a terminal and login to your account:
Description: Setup GitHub Pages "gh-pages" branch and "master" branch as subfolders of a parent project folder ("grandmaster").
Author: Chris Jacob @_chrisjacob
Tutorial (Gist): https://gist.github.com/833223