From f61d54b662c52ff6bf32b700fe899a74130f08ee Mon Sep 17 00:00:00 2001 From: ImAlpha Date: Wed, 5 Jul 2023 17:02:32 -0700 Subject: [PATCH] Start of 380 --- Top150Interview/380InsertDeleteGetRandomO1.py | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Top150Interview/380InsertDeleteGetRandomO1.py diff --git a/Top150Interview/380InsertDeleteGetRandomO1.py b/Top150Interview/380InsertDeleteGetRandomO1.py new file mode 100644 index 0000000..69ce5b0 --- /dev/null +++ b/Top150Interview/380InsertDeleteGetRandomO1.py @@ -0,0 +1,29 @@ +def __init__(self): + + +def insert(self, val): + """ + :type val: int + :rtype: bool + """ + + +def remove(self, val): + """ + :type val: int + :rtype: bool + """ + + +def getRandom(self): + """ + :rtype: int + """ + + + +# Your RandomizedSet object will be instantiated and called as such: +# obj = RandomizedSet() +# param_1 = obj.insert(val) +# param_2 = obj.remove(val) +# param_3 = obj.getRandom() \ No newline at end of file