Leetcode 19 Remove Nth Node From End of List | JavaScript | Top Interview Questions Linked List

preview_player
Показать описание
Leetcode 19 Remove Nth Node From End of List | JavaScript | Top Interview Questions Linked List
Рекомендации по теме
Комментарии
Автор

Hey thanks for posting this solution -- very helpful!

Had a question regarding your for loop: Is there a reason why you begin your for loop at i = 1; i < n + 1 vs. starting at i = 0; i < n?
I assume it was preference but wanted to make sure in case there was a detail I was missing.

Brandon-qomp