a) node = node.children[index];
b) node = node.children[str.charAt(i + 1)];
c) node = node.children[index++];
d) node = node.children[index++];
Following code snippet is the function to insert a string in a trie. Find the missing line. Take Data Structure I Tests
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Following code snippet is the function to insert a string in a trie. Find the missing line. Take Data Structure I Tests
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!