private void BuildIntLinkedListRandom(QLinkedList <int> list, int start, int end) { for (int i = start; i <= end; ++i) { list.InsertTail(i); } WriteLine("Build:[{0}:{1}]", start, end); }
private void BuildStringLinkedListRandom(QLinkedList <string> list, int start, int end) { for (int i = start; i <= end; ++i) { list.InsertTail(string.Format("Index:{0}", i)); } WriteLine("Build:[{0}:{1}]", start, end); }