Given the head of a linked list, reverse its nodes k at a time and return the modified list. If the number of remaining nodes is less than k, leave them as they are. Only the nodes may be rearranged, not their values.
Practise this challenge
All coding challenges