0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

キューとスタック

0
Posted at

キュー

格納した順序でデータを取り出すことができるデータ構造。最初に格納したデータは最初に取り出すFIFO(First-in First-out)の特徴がある。
キューにデータを格納することをエンキュー、キューからデータを取り出すことをデキューという。

スタック

格納した順序とは逆の順序でデータを取り出すことができるデータ構造。最後に格納したデータを最初に取り出すLIFO(Last-in First-out)の特徴がある。
スタックにデータを格納することをプッシュ、スタックからデータを取り出すことをポップという。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?