powered by
searchWord(tree, string)
fruitTree <- newTree(c("apple", "orange","apricot","cherry")) searchWord(fruitTree, "apricot") searchWord(fruitTree, "banana")
Run the code above in your browser using DataLab