1474. Delete N Nodes After M Nodes of a Linked List
Description
**Input:** head = [1,2,3,4,5,6,7,8,9,10,11,12,13], m = 2, n = 3
**Output:** [1,2,6,7,11,12]
**Explanation:** Keep the first (m = 2) nodes starting from the head of the linked List (1 ->2) show in black nodes.
Delete the next (n = 3) nodes (3 -> 4 -> 5) show in read nodes.
Continue with the same procedure until reaching the tail of the Linked List.
Head of linked list after removing nodes is returned.ac
Last updated

