Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- > Now there is a map containing scores for dictionary words.
- > Change the code to prefer the values with the highest scores when there are collisions.
- Example:
- Input: "amazonbooksteam"
- Dict: ["amazon", "boo", "book", "books", "steam", "team"]
- Map: {"book": 1, "steam": 1, "books": 2, "team": 2}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement