Advertisement
Guest User

Untitled

a guest
Feb 14th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. Input: th [thing, awesome, potato, example]
  2. Output: thing (Because it starts with "th")
  3.  
  4. Input: ing [thing, potato]
  5. Output: thing (Because it ends with "ing")
  6.  
  7. Input: tat [thing, potato]
  8. Output: potato (Because it contains "tat")
  9.  
  10. Input: tat [tato, potato]
  11. Output: tato, potato (If there are 2 or more results matching, print all of them)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement