Advertisement
Guest User

Untitled

a guest
Jul 18th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  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}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement