Remove Nth Node From End Of List - LeetCode 19 - JavaScript

preview_player
Показать описание


Step by step walk through of the solution to the popular Meta coding interview question, Remove Nth Node From End Of List .

LeetCode 19

JavaScript

0:00 Intro
0:26 Explanation
3:04 Code

#softwareengineering #javascript #leetcode
Рекомендации по теме
Комментарии
Автор

we can assign left pointer at head and right pointer at head.next as well right?? and Right will have to run through loop n-1 times

Singh
Автор

How do you come up with the thinking of moving the left pointer over until the right is null? I understand this makes the left stop at the node we want to change next for. I hope this question makes sense.

producedjc