Remove Element - Leetcode 27 - Python

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

K is just a pointer (or i) that keeps track of how many of the selected values ( not equal to val) will be returned at the end. That is the main part of the problem, plus understanding the importance of returning in place to save memory. Had 92% runtime beat after recording.

scotty_schmidt
join shbcf.ru