Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // declares a dictionary
- #ifndef DICTIONARY_H
- #define DICTIONARY_H
- #include <stdbool.h>
- // maximum length for a word
- #define LENGTH 45
- // our dictionary will be a trie
- struct Trie
- {
- int leaf; // 1 when node is a leaf node
- struct Trie* character[LENGTH];
- };
- bool check(struct Trie* dictionaryTrie, char* str);
- void addWord(struct Trie *dictionaryTrie, char* str);
- struct Trie* emptyTrieNode();
- #endif // DICTIONARY_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement