摘要: map记录位置remove时候把最后一位跟要remove的交换 然后去掉最后一位 这样可以达到O(1) 阅读全文
posted @ 2018-11-03 09:26 jasoncool1 阅读(116) 评论(0) 推荐(0) 编辑