Quiz: Trie Search vs StartsWith

Test your understanding

Check Your Understanding

After inserting "apple", search("app") returns false but startsWith("app") returns true. What determines the difference?

  1. A.search() checks the length of the word
  2. B.They use different data structures internally
  3. C.startsWith() only checks the first character
  4. D.search() requires an end-of-word marker at the final node
Start the roadmap to answer the quizzes and solve the challenges