We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a805069 commit 598f444Copy full SHA for 598f444
algorithms/removeElement/removeElement.py
@@ -0,0 +1,5 @@
1
+
2
+def removeElement(nums, val):
3
+ while val in nums:
4
+ nums.remove(val)
5
+ return len(nums)
0 commit comments