minor change

This commit is contained in:
Vitor Oliveira 2021-03-15 21:50:51 -07:00
parent afef73db10
commit d5877acb14

View file

@ -71,8 +71,8 @@ def remove_element(nums, val)
while pointer1 < pointer2
if nums[pointer1] == val
nums[pointer1] = nums[pointer2 - 1]
pointer2 -= 1
nums[pointer1] = nums[pointer2]
else
pointer1 += 1
end