Skip to content

Instantly share code, notes, and snippets.

@devinus
Created August 30, 2012 22:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save devinus/3542598 to your computer and use it in GitHub Desktop.
Save devinus/3542598 to your computer and use it in GitHub Desktop.
; [name before after]
(def unsorted-injections [['b 'c nil] ['a 'b nil] ['d nil 'c] ['c nil nil] ['e nil 'd]])
; Sort unsorted-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