Skip to content

Instantly share code, notes, and snippets.

@acook
Created March 28, 2014 19:28
Show Gist options
  • Select an option

  • Save acook/9841066 to your computer and use it in GitHub Desktop.

Select an option

Save acook/9841066 to your computer and use it in GitHub Desktop.
number.to_s.split('').permutation.map{|p| p.join.to_i }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment