The TransCompilator

Solved LeetCode program · 176 of 1,000

#0203 · Remove Linked List Elements

Easy Linked List chunk-04.md

Original English source

The nodes is a list of 1, 2, 6, 3, 4, 5, and 6. The target is 6. The kept is an empty list of whole numbers.
For each value in nodes.
If value is not target, Place value into kept.

For each value in kept, show value.

Open in Playground Browse all 1,000 problems

Expected stdout

1
2
3
4
5