Skip to content

Instantly share code, notes, and snippets.

@mceoin
Forked from kevinkang88/gc1_user_stories.js
Last active August 29, 2015 13:57
Show Gist options
  • Save mceoin/9717446 to your computer and use it in GitHub Desktop.
Save mceoin/9717446 to your computer and use it in GitHub Desktop.
var SUM pseudocode: add up all the numbers in an array
var MEAN pseudocode: divide the sum of an array by the length of that array.
Var MEDIAN pseudocode: use array.sort to order the numbers in our array from smallest to lartest
then (if array length is odd): find the midpoint of that array
or (if array length is even): find the two numbers that sit on either side of array.length/2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment