Розмір відео: 1280 X 720853 X 480640 X 360
Показувати елементи керування програвачем
Автоматичне відтворення
Автоповтор
Why not:return [item for item in nums if item!= val]
You I tried it, doesn’t work. The platform is reading the first k elements of the original array and checking if those contain val or not. Also, the return value has to be in an int, not a list.
Why not:
return [item for item in nums if item!= val]
You I tried it, doesn’t work. The platform is reading the first k elements of the original array and checking if those contain val or not. Also, the return value has to be in an int, not a list.