TweakCode
Recursion lessons
Loading editor…
Test casesRun to compare output
Input
dictionary = ["cat","bat","rat"], sentence = "the cattle was rattled by the battery"
Output
—
Expected
"the cat was rat by the bat"

More practice

Same technique, different problems. Try them without the walkthrough.