Leetcode 27: Remove Element
Leetcode 27 asks us to remove a specific value from an array. The value to be removed is passed in as a parameter to the function along with the array. Just as we did in Day 1, we will cover a naive approach and an optimized approach and discuss the trade-offs between them. I think in the end there's a pretty clear winner. Let's get started.
For both approaches we will use the following values:
nums = [1, 3, 3, 2, 4]
val = 3







