Skip to content

Commit

Permalink
time complexity added
Browse files Browse the repository at this point in the history
  • Loading branch information
SuryankDixit committed Sep 23, 2021
1 parent 85d8f85 commit df11576
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions DSA-Sheet/String/shortest-unique-prefix-using-trie.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
Cretae Trie: O(N*k)
Insert: O(k)
Search: O(k)
LookUp for all Words: O(N*k)
*/

#include<bits/stdc++.h>
using namespace std;

Expand Down

0 comments on commit df11576

Please sign in to comment.