Skip to content

Instantly share code, notes, and snippets.

View kylebakerio's full-sized avatar
⛰️
mountains are really nice, guys.

Kyle Baker kylebakerio

⛰️
mountains are really nice, guys.
View GitHub Profile
@kylebakerio
kylebakerio / gist:e5f49adfc8aed57f1e76
Last active August 29, 2015 14:13
Maker Square Algorithms Challenge
/*Instructions:
Submit a solution to the following challenge:
Given an array of integers, find the smallest difference between any two elements of the array. For example:
var findSmallestDifference = function(arr) {
// Your code goes here
};
var result = findSmallestDifference([100, 500, 300, 1000, -200, 990]);