Ezvor

1474. Delete N Nodes After M Nodes of a Linked List

EasyLinked List Preparing judge… LeetCode
Linked List

Hints

Hint 1
Traverse the Linked List, each time you need to delete the next n nodes connect the nodes previous deleting with the next node after deleting.