contributed by < JUSTUSVMOS >
Week 1 Quiz - Linked List
Week1 Quiz
Quiz 1 - Head Linked List list_insert_before
解釋程式碼
1. 線性尋找插入位置
迴圈條件 *p != before:只要目前節點不是欲插入點,就把 p 移到下一個「指標的位址」──亦即 p = &(*p)->next。
Are you sure to leave this team?
Once you delete your team, all team notes will be deleted and cannot be recovered. Please ensure you've exported or transfered these notes.
Enter team name before deleting it:
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up