Test Cases & Chat
Part 1
current
Test 1
input:Trie(), insert("apple"), search("apple") => true, search("app") => false, startsWith("app") => true, insert("app"), search("app") => true
expect:[true, false, true, true]
Test 2
input:Trie(), insert("hello"), search("hello") => true, search("hell") => false, startsWith("hell") => true
expect:[true, false, true]
Test 3
input:Trie(), insert("abc"), insert("abcd"), search("abc") => true, search("abcd") => true, startsWith("ab") => true
expect:[true, true, true]
Choose your coach
Pick a style and how you want to communicate
then
Loading...
OUTPUT
Run code to see output...
Part 1
current
Test 1
input:Trie(), insert("apple"), search("apple") => true, search("app") => false, startsWith("app") => true, insert("app"), search("app") => true
expect:[true, false, true, true]
Test 2
input:Trie(), insert("hello"), search("hello") => true, search("hell") => false, startsWith("hell") => true
expect:[true, false, true]
Test 3
input:Trie(), insert("abc"), insert("abcd"), search("abc") => true, search("abcd") => true, startsWith("ab") => true
expect:[true, true, true]
Choose your coach
Pick a style and how you want to communicate
then