Closed labuladong closed 1 year ago
Q380. Insert Delete GetRandom O(1) https://leetcode.com/problems/insert-delete-getrandom-o1/discuss/3888279/Java-ArrayList-Solution
https://leetcode.cn/problems/insert-delete-getrandom-o1/solutions/2381577/problem-380-o1-shi-jian-cha-ru-shan-chu-bos77/ // 今天这道题力扣没法辨别时间复杂度,用indexOf()写O(n)的算法也能过,算是力扣的一个bug哈哈
本期打卡已结算完成。报名最新一期的打卡活动 点这里