@greghogg5: VERY COMMON FAANG INTERVIEW QUESTION - Leetcode 27 - Remove Element Crack big tech at algomap.io! #coding #leetcode #programming #interview
why not for i in range(list.count(val)): list.remove(val)? Is there any reason to order the list?
2025-10-16 20:04:19
2
Christian Barreto :
Can you also make a new array that doesn’t contain val? Which basically removes it too? (I know it’s probably not as efficient I’m just talking in a brute force style)
2025-10-16 15:41:33
1
mia🐦⬛ :
maybe dumb question, but why do you have to repeat the i < j, when the while loop those are nested in are already checking for that condition of i < j ? why do you have to check again inside the while loop that’s already checking?
2025-10-19 05:45:36
0
To see more videos from user @greghogg5, please go to the Tikwm
homepage.