MCPcopy Create free account
hub / github.com/ByteByteGoHq/coding-interview-patterns / TrieNode

Class TrieNode

kotlin/Tries/FindAllWordsOnABoard.kt:1–4  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1data class TrieNode(
2 var word: String? = null,
3 val children: HashMap<Char, TrieNode> = hashMapOf()
4)
5
6fun findAllWordsOnABoard(board: Array<CharArray>, words: List<String>): List<String> {
7 val root = TrieNode()

Callers 1

findAllWordsOnABoardFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected