using System;
public class Node
{
public Node(string data)
Data = data;
Mark = false;
}
public Node Next
get;
set;
public string Data
public bool Mark
public class Program
public static void Main()
public static void Test()
var headList1 = new Node("A");
var headList2 = new Node("1");
var interSection = new Node("Z");
public static void InsertTail(Node head, Node tail)
var current = head;
while (current.Next != null)
current = current.Next;
current.Next = tail;