Skip to content

Instantly share code, notes, and snippets.

View carl-parrish's full-sized avatar

Carl Parrish carl-parrish

View GitHub Profile
@carl-parrish
carl-parrish / flattenMap.md
Last active December 25, 2017 16:14
FlattenArray.js
/********************
** Write some code, that will flatten an array 
** of arbitrarily nested arrays of integers 
** into a flat array of integers. 
** e.g. [[1,2,[3]],4] -> [1,2,3,4]
************************/

var answer = [];
@carl-parrish
carl-parrish / maxStockProfit.md
Created December 26, 2017 03:53
Max Stock Profit
function maxStockProfit(pricesArr) {

  const Price = {
    'buy': 0,
    'sell': 0,
    'change': true
  };
  
 

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example