본문 바로가기

Stacks and queues (array-backed)

English

Two ways to hold items

  • A stack and a queue both hold a line of items, but they differ in which item comes out next.
  • A stack is LIFO: Last In, First Out — like a pile of plates.
  • A queue is FIFO: First In, First Out — like a line of people.

교재 자료

로그인 또는 계정 만들기

IGCSE, A-Level & AP