摘要:
// 链表类class LL{publicstring value;publicLL link; // used for outputingthe linkdatapublicvoid OutPut() { Console.Write(value); if (link != null) { Console.Write(","); link.OutPut(); } }}逆序:privateLL Revert(LL t){ LL newList = null; while (t != null) { LL mid = new LL(); mid.value = t.value; 阅读全文