Remove Nth Node From End of List
Medium📝 Description
Remove the nth node from the end of a linked list
Input Format
Linked list head node and integer n
Output Format
Modified linked list head node
Constraints
1 ≤ number of nodes ≤ 30
🔍 Sample Input
[1,2,3,4,5]
2
✅ Sample Output
[1,2,3,5]
Code Editor
Please login to run and submit code.
Results
Suggested Solution
Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run