Time complexity wise this solution is the best among all, we can do all operations in O(1) time.
时间复杂度这个解决方案是最好的,我们可以在O(1)时间内完成所有操作。(还是说经过时间检验的?)