Day7
This commit is contained in:
18
19. Remove Nth Node From End of List/Program.cs
Normal file
18
19. Remove Nth Node From End of List/Program.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
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));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user