Hackerrank Day 1: Standard Deviation

screen-shot-2016-12-30-at-12-13-49-am

My Solution in Ruby:

This one was a lot easier than the previous two stats challenges.  I was able to solve it before Jimmy could finish pooping.

screen-shot-2016-12-30-at-12-14-10-am

Notes about Ruby Ranges: 

(1..5)        #==> 1, 2, 3, 4, 5
(1...5)       #==> 1, 2, 3, 4
Advertisements
Hackerrank Day 1: Standard Deviation

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s