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

Given the head of a linked list and two integers m and n, delete n nodes after every m nodes in the list. This pattern continues until the end of the list.

The deletion is done in-place, meaning you modify the original list.

Examples
Input: [[1,2,3,4,5,6,7,8,9,10,11],1,0]
Output: [1,2,3,4,5,6,7,8,9,10,11]
Hints
Related Problems

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

Given the head of a linked list and two integers `m` and `n`, delete `n` nodes after every `m` nodes in the list. This pattern continues until the end of the list.