11 ms·Persistent data structures already solved this issue.by simongray 6y agoPersistent data structures already solved this issue.