-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
Data-Structures-and-Algorithms/Java/soln-trie-problems/longest-common-prefix-case-sensitive.java
Lines 24 to 26 in 8ba5e1e
| newNode.val=(char)('a'+index); | |
| newNode.count=newNode.endsHere=0; | |
| for(int i=0;i<26;i++) |
newNode.val=(char)('a'+index); // a+26 = {
newNode.count=newNode.endsHere=0;
for(int i=0;i<26;i++) // it should be 52 instead of 26
Metadata
Metadata
Assignees
Labels
No labels