Page 1 of 1

Following code snippet is the function to insert a string in a trie. Find the missing line. Take Data Structure I Tests

Posted: Wed Jul 13, 2022 7:43 pm
by answerhappygod
a) node = node.children[index];
b) node = node.children[str.charAt(i + 1)];
c) node = node.children[index++];
d) node = node.children[index++];