Data-Structures-and-Algorithms icon indicating copy to clipboard operation
Data-Structures-and-Algorithms copied to clipboard

Case-sensitive condition missing

Open tech-tycoon opened this issue 4 years ago • 0 comments

https://github.com/FarheenB/Data-Structures-and-Algorithms/blob/8ba5e1e361a123e97963cf6df1e10a3f35c10435/Java/soln-trie-problems/longest-common-prefix-case-sensitive.java#L24-L26

    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

tech-tycoon avatar Oct 26 '21 13:10 tech-tycoon