Recursion lessons
Node 22.08.0
Loading editor…
Test casesRun to compare output
Input
ops = ["MagicDictionary","buildDict","search","search","search","search"], args = [[],[["hello","leetcode"]],["hello"],["hhllo"],["hell"],["leetcode"]]
Output
—
Expected
[null,null,false,true,false,false]
More practice
Same technique, different problems. Try them without the walkthrough.