LeetCode 19: Remove Nth Node from End of a List - JavaScript solution

preview_player
Показать описание
Two pointer approach to solve the problem of removing the Nth Node from the end of the list. The pointers aren’t technically “fast” and “slow” since they advance at the same pace, but it was easier for me to visualize.
Let me know if there’s another way to solve this, or if there are any ways I can improve my explanations.

Рекомендации по теме