Bỏ qua nội dung

Hàng đợi (Queues)

English

A queue is FIFO

  • A queue is First In, First Out (FIFO).
  • The first item you add is the first one to leave.
  • Think of a line of people: the person at the front is served first.

A queue: enqueue adds at the rear and dequeue removes from the front

Tài liệu

Đăng nhập hoặc tạo tài khoản

IGCSE, A-Level & AP