Created
August 30, 2012 21:42
-
-
Save devinus/3541920 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// [name, before, after] | |
var injections = [['b', 'c', null], ['a','b', null], ['d', null, 'c'], ['c', null, null], ['e', null, 'd']]; | |
// Sort injections such that: | |
// 1) a is before b | |
// 2) b is before c | |
// 3) d is after c | |
// 4) e is after d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment