diff options
| author | MZuenni <michi.zuendorf@gmail.com> | 2023-01-11 11:15:50 +0100 |
|---|---|---|
| committer | MZuenni <michi.zuendorf@gmail.com> | 2023-01-11 11:15:50 +0100 |
| commit | 61cac9c0febbb5440b99e22770d917bf3a63c405 (patch) | |
| tree | 98b7dc3b77ada4cffe5b81daded5516b941f28ec /string/trie.cpp | |
| parent | fd1f2b36e95c03625297b7b8cba3b1a04a0cc0ed (diff) | |
dont use .size()
Diffstat (limited to 'string/trie.cpp')
| -rw-r--r-- | string/trie.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/string/trie.cpp b/string/trie.cpp index f112e1e..0544a9f 100644 --- a/string/trie.cpp +++ b/string/trie.cpp @@ -11,7 +11,7 @@ int insert(vector<int>& word) { for (int c : word) { trie[id].words++; if (trie[id].children[c] < 0) { - trie[id].children[c] = trie.size(); + trie[id].children[c] = sz(trie); trie.emplace_back(); } id = trie[id].children[c]; |
