Skip to content

Instantly share code, notes, and snippets.

@olaugh
Created November 25, 2012 12:24
Show Gist options
  • Save olaugh/4143306 to your computer and use it in GitHub Desktop.
Save olaugh/4143306 to your computer and use it in GitHub Desktop.
import Math.Combinatorics.Multiset
bag = fromList $ "AAAAAAAAABBCCDDDDEEEEEEEEEEEEFFGGGHHIIIIIIIIIJKLLLLMM" ++
"NNNNNNOOOOOOOOPPQRRRRRRSSSSTTTTTTUUUUVVWWXYYZ??"
main = print $ length $ kSubsets 7 bag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment