Skip to content

Instantly share code, notes, and snippets.

@unixmonkey
Created August 14, 2013 23:44
Show Gist options
  • Save unixmonkey/6236951 to your computer and use it in GitHub Desktop.
Save unixmonkey/6236951 to your computer and use it in GitHub Desktop.
def problem1(i)
%w(A C G T).map{|l|i.split('').select{|b|b==l}.size}.join ' '
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment