Skip to content

Instantly share code, notes, and snippets.

@dance2die dance2die/opening.Trie.js
Last active Mar 30, 2019

What would you like to do?
class Trie {
has(word) { return true; }
function useTrie() {
const trie = React.useState(new Trie())[0];
return { ...trie };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.