SkillAgentSearch skills...

DoubleArrayTrie

高级结构双数组Trie树(DoubleArrayTrie) java实现

Install / Use

/learn @dingyaguang117/DoubleArrayTrie
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

DoubleArrayTrie

DoubleArrayTrie Java Implementation

Introduction

https://www.co-ding.com/blog/algorithm/2013-05-28-DoubleArrayTrie.html

Usage

// construct and build
DoubleArrayTrie dat = new DoubleArrayTrie();  

for(String word: words)  
{  
    dat.Insert(word);  
}  


System.out.println(dat.Base.length);  
System.out.println(dat.Tail.length);  

String word = sc.next();  

// Look up a word
System.out.println(dat.Exists(word));  

// Find all words that begin with a string
System.out.println(dat.FindAllWords(word));  
View on GitHub
GitHub Stars24
CategoryDevelopment
Updated1mo ago
Forks26

Languages

Java

Security Score

75/100

Audited on Feb 13, 2026

No findings