contributed by < JimmyZhan070100 >
Queue 實做
github
Queue structure
題目要求必須在 $O(1)$ 的時間內得到 qeue 的尾端和大小,所以在結構裡增加 tail 和 size
typedef struct {
list_ele_t *head; /* Linked list of elements */
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