toggle menu
KAHelpers
androidJvm
switch theme
search in API
dataStructuresAndAlgorithms
/
dev.funkymuse.datastructuresandalgorithms.trie
/
Trie
Trie
class
Trie
<
Key
>
Members
Members & Extensions
Constructors
Trie
Link copied to clipboard
constructor
(
)
Properties
count
Link copied to clipboard
val
count
:
Int
is
Empty
Link copied to clipboard
val
isEmpty
:
Boolean
is
Not
Empty
Link copied to clipboard
val
isNotEmpty
:
Boolean
lists
Link copied to clipboard
val
lists
:
List
<
List
<
Key
>
>
Functions
collections
Link copied to clipboard
fun
collections
(
prefix
:
List
<
Key
>
)
:
List
<
List
<
Key
>
>
collections
Link copied to clipboard
fun
Trie
<
Char
>
.
collections
(
prefix
:
String
)
:
List
<
String
>
contains
Link copied to clipboard
fun
contains
(
list
:
List
<
Key
>
)
:
Boolean
contains
Link copied to clipboard
fun
Trie
<
Char
>
.
contains
(
string
:
String
)
:
Boolean
insert
Link copied to clipboard
fun
insert
(
list
:
List
<
Key
>
)
insert
Link copied to clipboard
fun
Trie
<
Char
>
.
insert
(
string
:
String
)
remove
Link copied to clipboard
fun
remove
(
list
:
List
<
Key
>
)
remove
Link copied to clipboard
fun
Trie
<
Char
>
.
remove
(
string
:
String
)