From c443bed68e1fb009b4ad476b45996acb20f2aaa0 Mon Sep 17 00:00:00 2001 From: ImAlpha Date: Sat, 8 Jul 2023 10:51:58 -0700 Subject: [PATCH] added changes to insert --- Top150Interview/380InsertDeleteGetRandomO1.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Top150Interview/380InsertDeleteGetRandomO1.py b/Top150Interview/380InsertDeleteGetRandomO1.py index ea435cb..1e7d3f3 100644 --- a/Top150Interview/380InsertDeleteGetRandomO1.py +++ b/Top150Interview/380InsertDeleteGetRandomO1.py @@ -12,6 +12,7 @@ def insert(self, val): return None if val not in self: self.add(val) + return True return False