큐 자료구조: 순차적 루프 큐와 연결 리스트 기반 큐 구현

순차적 루프 큐 (순환 큐) sequeue.h #define MAX_SIZE 5 typedef int QueueElement; typedef struct { QueueElement elements[MAX_SIZE]; int head; int tail; } CircularQueue; CircularQueue* create_queue(); int enqueue(CircularQueue* queue, QueueElement value); QueueElement dequeue(CircularQueue* queue); int is_empty(CircularQueue* queu ...

7월 14일 02:00에 게시됨