69.
Following code snippet is the function to insert a string in a trie. Find the missing line.
private void insert(String str)
    {
        TrieNode node = root;
        for (int i = 0; i < length; i++)
        {
            int index = key.charAt(i) - 'a';
            if (node.children[index] == null)
                node.children[index] = new TrieNode();
 
            ________________________
        }
 
        node.isEndOfWord = true;
    }

Read More Section(Advanced Trees (AVL, RedBlack, BTrees))

Each Section contains maximum 100 MCQs question on Advanced Trees (AVL, RedBlack, BTrees). To get more questions visit other sections.