diff --git a/Top150Interview/380InsertDeleteGetRandomO1.py b/Top150Interview/380InsertDeleteGetRandomO1.py index 1e7d3f3..7bdb9e6 100644 --- a/Top150Interview/380InsertDeleteGetRandomO1.py +++ b/Top150Interview/380InsertDeleteGetRandomO1.py @@ -10,9 +10,9 @@ def insert(self, val): """ if val is None: return None + if val not in self: self.add(val) - return True return False