O(1)复杂度增加和删除和随机取

题目:

https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed

 

非常好的解法:

https://discuss.leetcode.com/topic/54381/c-128m-solution-real-o-1-solution

 

    原文作者:blcblc
    原文地址: https://www.cnblogs.com/charlesblc/p/6438698.html
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞