Are the implementations basically equivalent (If not then why). No, your rotate_push is O(n), normal deque push and pop are O(1).
確定! 回上一頁