官术网_书友最值得收藏!

Types of queue

Before we begin understanding queues, let's quickly take a look at the types of queues that we may want to use in our applications:

  • Simple queue: In a simple FIFO queue, the order is retained and data leaves in the same order in which it comes in
  • Priority queue: A queue in which the elements are given a predefined priority
  • Circular queue: Similar to a simple queue, except that the back of the queue is followed by the front of the queue
  • Double ended queue (Dequeue): Similar to the simple queue but can add or remove elements from either the front or the back of the queue
主站蜘蛛池模板: 南宫市| 江华| 大同县| 汶川县| 邹平县| 临城县| 博白县| 淳安县| 琼结县| 永安市| 皮山县| 临沭县| 客服| 石首市| 乌什县| 宝兴县| 中卫市| 左权县| 吴江市| 济阳县| 九江市| 渝北区| 新营市| 如皋市| 和林格尔县| 崇义县| 七台河市| 方正县| 响水县| 浮山县| 香格里拉县| 通辽市| 陈巴尔虎旗| 明水县| 山西省| 丁青县| 海门市| 西吉县| 浏阳市| 嘉善县| 云南省|