Skip to content

Instantly share code, notes, and snippets.

View suyashgulati's full-sized avatar
👨‍💻
Learning

Suyash Gulati suyashgulati

👨‍💻
Learning
View GitHub Profile
@suyashgulati
suyashgulati / dict.js
Created June 14, 2023 20:32
Dictionary implementation using Trie Tree
// Classic Trie tree implementation for a dictionary that also supports wildcard search
class TrieNode {
constructor(isEndOfWord = false) {
this.isEndOfWord = isEndOfWord;
this.children = {};
}
}