contributed by < asd617140123
>
認真看作業要求,除了提及如何逐步達到要求,還需要進行:
還未達成符合預期目標,請繼續付出!
https://hackmd.io/s/S1NttXtrV#
https://hackmd.io/s/BysQssYHN#
在尾端跟長度查詢 複雜度是O(1),所以在下方加入
q_free
q_insert_head
q_insert_tail
q_remove_head
一開始發現使用free() function remove 會有下方 錯誤資訊
後來發現要在queue.c加入
#define INTERNAL 1
並且使用 test_free() 才不會跳error
相關原理還要再看 qtest.c 裡面的實作
q_size
直接回傳存好的值大小:
q_reverse