📜  反转链表 C# 代码示例

📅  最后修改于: 2022-03-11 14:48:53.585000             🧑  作者: Mango

代码示例1
//ll is the LinkedList
//using System.Linq
foreach(string item in ll.ToArray()){ll.AddFirst(item);ll.RemoveLast();}

//without using System.Linq

List lll = new List(ll);
for(int i=0;i