leetle

Daily challenge for 2025-02-18

49. Remove Nth Node From End of List

Write a function solve that removes the nth node from the end of a singly linked list. Return the head.

Example:
Input: [1,2,3,4,5], 2
Output: [1,2,3,5]

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