You are viewing a single comment's thread. Return to all comments →
instead of using unordered_set, it would be quicker with set because unordered_set takes a constant O(1) while set takes O(log n)
Seems like cookies are disabled on this browser, please enable them to open this website
Sparse Arrays
You are viewing a single comment's thread. Return to all comments →
instead of using unordered_set, it would be quicker with set because unordered_set takes a constant O(1) while set takes O(log n)