Advertisement
Guest User

Untitled

a guest
Sep 1st, 2012
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. words = ["hello", "world", "no", "yes", "well", "go"]
  2. success = []
  3.  
  4. user_arr = %w(h e l l o w o r l d)
  5.  
  6. # test whether any of the words can be spelled using the letters from user_arr
  7. #
  8. #
  9. #
  10.  
  11. puts success
  12. #=> ["hello", "world", "well"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement