Replace Words with Roots
Talk it through with a coach who asks guiding questions and gives hints until you reach the answer. Pass to mark the challenge as completed.
The problem
- medium
- Pro
You're given a dictionary of word roots and a sentence. Replace each word in the sentence with the shortest root that it starts with, leaving words with no matching root unchanged. Explain your approach and its cost.
Talk this problem through with an AI coach
This is a Pro challenge. Sign in with Google, then upgrade to start a voice session.