Problem 3082. Scrabble Scores - 10

This problem is very similar to the previous problem. Here, you are provided a letter of an existing word on the board from which you will play a word. The letter can reside anywhere (first to last) within the word you are playing. Write a function to find the highest scoring word, provided the letter you are building off of and the letters on your tray.

Rather than having to test all the possible permutations against a dictionary, you will be provided a cell array of strings containing all possible words based on the starting letter and the letters on your tray. In addition to providing the highest score, also provide the word(s) that achieve that score in a cell array. See the test suite for examples. Due to high-scoring tiles, the highest score may not be achieved by the longest word(s).

Related problems:

Previous problem: 9 - Word score optimization (fixed first letter). Next problem: 11 - Word score optimization (known letter) & multipliers.

Solution Stats

73.68% Correct | 26.32% Incorrect
Last Solution submitted on Jan 03, 2019

Problem Comments

Problem Recent Solvers13

Suggested Problems

More from this Author139

Problem Tags