The TransCompilator

Solved LeetCode program · 19 of 1,000

#0019 · Remove Nth Node From End of List

Medium Two Pointers chunk-01.md

Original English source

The values is a list of 1, 2, 3, 4, and 5. The last is the last position of values. The position is last plus 1 minus 2. Remove item position of values. For each value in values, display value.

Open in Playground Browse all 1,000 problems

Expected stdout

1
2
3
5