Created
November 14, 2013 06:56
-
-
Save adamloo85/7462583 to your computer and use it in GitHub Desktop.
Revisions
-
adamloo85 created this gist
Nov 14, 2013 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ def find_char(string) word = string.split(//) word = word.find_all { |x| word.count(x) == 1 } word.first end