Files
Leetcode/19. Remove Nth Node From End of List/Program.cs
Electrominch c019e8856c Day7
2022-10-08 01:07:50 +03:00

19 lines
425 B
C#

namespace _19._Remove_Nth_Node_From_End_of_List;
internal class Program
{
static void Main(string[] args)
{
ListNode l1 = new ListNode(1);
ListNode l2 = new ListNode(2);
ListNode l3 = new ListNode(3);
ListNode l4 = new ListNode(4);
//l1.next = l2;
//l2.next = l3;
//l3.next = l4;
Console.WriteLine(new Solution().RemoveNthFromEnd(l1, 1));
}
}