From 3a9a1615a4ff1bf9c0bd6131c25a7f85b866a143 Mon Sep 17 00:00:00 2001 From: misrapk Date: Sun, 14 Nov 2021 17:22:47 +0530 Subject: [PATCH] updated the trie code --- C++/Data Structure/Trie.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/C++/Data Structure/Trie.cpp b/C++/Data Structure/Trie.cpp index 65a9fd176..9f83ff1db 100644 --- a/C++/Data Structure/Trie.cpp +++ b/C++/Data Structure/Trie.cpp @@ -72,11 +72,11 @@ class Trie { }; int main(){ - /** - * Your Trie object will be instantiated and called as such: - * Trie* obj = new Trie(); - * obj->insert(word); - * bool param_2 = obj->search(word); - * bool param_3 = obj->startsWith(prefix); - */ + +// Your Trie object will be instantiated and called as such: + Trie* obj = new Trie(); + obj->insert(word); + bool param_2 = obj->search(word); + bool param_3 = obj->startsWith(prefix); + }