You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can you please tell me if there is any way to update SortedStringTrie and get sorted items after update.
I have a SortedStringTrie trie, I query with a preffix
trie.items('soạn văn lớp 7 bài c')
Output is
[('soạn văn lớp 7 bài chuẩn mực sử dụng từ', 47.6), ('soạn văn lớp 7 bài chơi chữ', 45.8)]
Then I update the trie
trie.__setitem__('soạn văn lớp 7 bài chơi chữ', 51.5)
trie.__setitem__('soạn văn lớp 7 bài cv', 50)
The output is not sorted
[('soạn văn lớp 7 bài chuẩn mực sử dụng từ', 47.6), ('soạn văn lớp 7 bài chơi chữ', 51.5), ('soạn văn lớp 7 bài cv', 50)]
The text was updated successfully, but these errors were encountered:
Can you please tell me if there is any way to update SortedStringTrie and get sorted items after update.
I have a SortedStringTrie trie, I query with a preffix
Output is
Then I update the trie
The output is not sorted
The text was updated successfully, but these errors were encountered: