Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- words = ["hello", "world", "no", "yes", "well", "go"]
- success = []
- user_arr = %w(h e l l o w o r l d)
- # test whether any of the words can be spelled using the letters from user_arr
- #
- #
- #
- puts success
- #=> ["hello", "world", "well"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement