SHARE
TWEET

Untitled

a guest Jul 18th, 2019 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. > Now there is a map containing scores for dictionary words.
  2. > Change the code to prefer the values with the highest scores when there are collisions.
  3.  
  4. Example:
  5.  
  6. Input: "amazonbooksteam"
  7. Dict: ["amazon", "boo", "book", "books", "steam", "team"]
  8. Map: {"book": 1, "steam": 1, "books": 2, "team": 2}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top