Skip to content · ⁨본문 바로가기⁩
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.
한국어

두 가지 항목 저장 방식

  • 스택(stack) 과 큐(queue) 은 모두 항목들의 줄(line)을 유지하지만, 어떤 항목이 먼저 나올지에서 차이가 있습니다.
  • 스택은 LIFO: Last In, First Out — 접시 더미(pile of plates)와 같습니다.
  • 큐는 FIFO: First In, First Out — 사람 줄(people line)과 같습니다.

Handout · ⁨교재 자료⁩

Log in or create account · ⁨로그인 또는 계정 만들기⁩

IGCSE, A-Level & AP