leetle

Daily challenge for 2025-04-11

101. Rotate Linked List

Write a function solve that rotates a linked list to the right by k places.

Example:
Input: 1->2->3->4->5, k=2
Output: 4->5->1->2->3

Run this challenge interactively in Python or JavaScript when the app loads.