今日开始写数据结构预算法题目集:
函数题1:
List Reverse( List L ) {
List prev = NULL;
List curr = L;
while (curr != NULL) {
List nextTemp = curr->Next;
curr->Next = prev;
prev = curr;
curr = nextTemp;
}
return prev;
}

posted on 2025-06-05 20:38  Swishy  阅读(4)  评论(0)    收藏  举报