AlgoMaster Logo

Remove Element

nums=[0, 1, 2, 2, 3, 0, 4, 2],val=2
0 / 11
algomaster.io
Step:Start: drop every 2 using a second array