Browse Source

switch function

Charles Reid 5 months ago
parent
commit
008e1daec5
1 changed files with 3 additions and 4 deletions
  1. 3
    4
      tries.py

+ 3
- 4
tries.py View File

@@ -233,8 +233,7 @@ class TryTrieTree(object):
233 233
             node.count = len(large_children)
234 234
 
235 235
 
236
-def trie_search(n):
237
-    verbose = False
236
+def trie_search(n, verbose=False):
238 237
 
239 238
     words = get_words()
240 239
     words = words[:n]
@@ -296,7 +295,7 @@ if __name__=="__main__":
296 295
         if n > 5757:
297 296
             n = 5757
298 297
 
299
-    #_,_ = trie_search(n)
298
+    _,_ = trie_search(n, verbose=True)
300 299
 
301
-    trie_table()
300
+    #trie_table()
302 301