[Leetcode/Python] 380. Insert Delete GetRandom O(1)


[Leetcode/Python] 380. Insert Delete GetRandom O(1)

문제 링크 Insert Delete GetRandom O(1) - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 문제 설명 RandomizedSet 클래스를 구현합니다. - RandomizedSet() RandomizedSet 개체를 초기화합니다. - bool insert(int val) 항목 val이 없으면 집합에 삽입합니다. 항목이 없으면 true를 반환하고 그렇지 않으면 false를 반환합니다. - bool remove(int val) 항목 val이 있는 ..


원문링크 : [Leetcode/Python] 380. Insert Delete GetRandom O(1)