Given the head of a linked list, reverse the nodes of the list k at a time, and return the modified list. If the number of nodes is not a multiple of k, leave the left-out nodes at the end as is.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.