Back
Close
  • 2778

What will I learn?

This puzzle makes you use nested loops and combine multiple associative arrays in order to build an efficient solution.

External resources

Associative arrayHash Table

Learning Opportunities

This puzzle can be solved using the following concepts. Practice using these concepts and improve your skills.

Statement

The goal of this problem is to find a word from a dictionary to get the best score at the popular scrabble game. The solving of this problem relies on associative arrays and the methodology used to compute the best score. A good choice of the data structure is often the key to correctly solve a puzzle.

A higher resolution is required to access the IDE

Story

When you play scrabble on sundays with your family, the situation quickly goes out of hand. What's the best move ? Should you play "pool" or "loop" ? What will grandma do ? Here we propose a new puzzle to calculate the best word to play out of a list.