انتقل إلى المحتوى

مورد · دليل أو مقال

Queue

تعريف من فقرة واحدة لطابور FIFO: عملية enqueue تضيف في المؤخرة، وdequeue تحذف من المقدمة، وpeek تقرأ العنصر الأول.

تمت المراجعة

افتح المصدر الأصلي: Queue (يفتح الموقع الأصلي في علامة تبويب جديدة)

أضِف إلى خريطة طريق

احتفظ بهذا المورد مع خريطة طريق تتبعها. يظهر موردًا إضافيًا خاصًا بك، فلا تتغير خطوات الخريطة ولا يُحتسب ضمن خطواتك المتتبَّعة.

لغة المحتوى الأصلي: الإنجليزية

Read this in other languages: 简体中文, Русский, 日本語, Français, Português, 한국어, Українська In computer science, a queue is a particular kind of abstract data type or collection in which the entities in the collection are kept in order and the principle (or only) operations on the collection are the addition of entities to the rear terminal position, known as enqueue, and removal of entities from the front terminal position, known as dequeue. This makes the queue a First-In-First-Out (FIFO) data structure. In a FIFO data structure, the first element added to the queue will be the first one to be removed. This is equivalent to the requirement that once a new element is added, all elements that were added before have to be removed before the new element can be removed. Often a peek or front operation is also entered, returning the value of the front element without dequeuing it. A queue is an example of a linear data structure, or more abstractly a sequential collection. Representation of a FIFO (first in, first out) queue

نظرة عامة من PrepKit

كتب محررو PrepKit هذه النظرة العامة وراجعوها اعتمادًا على المستودع المصدر. وهي ليست نصًا من المورد نفسه.

مناسب لـ
لا يحدد المصدر مستوى
الشكل
مرجع

ما الذي يغطيه

  • قاعدة الترتيب FIFO وعملية peek الاختيارية
  • رسم لطابور FIFO

كيف تستخدمه

نصيحة دراسية من PrepKit، وليست ادعاءً من المصدر.

نفّذ طابورًا بمكدسين، واشرح لماذا ينتقل كل عنصر بينهما مرة واحدة على الأكثر.

النطاق والقيود

لا جدول تعقيد ولا نقاش للتنفيذ ولا تمارين في الصفحة.

الوصول والشكل

ملف README قصير على GitHub، المستودع trekhleb/javascript-algorithms (MIT)، مع روابط لسبع ترجمات. باللغة الإنجليزية، مجاني.

راجعه PrepKit في 02‏/10‏/2026. إيداع مصدر المورد: 85293e3e2b88

أدلة هذه النظرة العامة
  • src/data-structures/queue/README.md

صفحات تتضمن هذا العنصر

اشترك في النشرة البريدية من PrepKit

اختيارية. لا تحتاج إليها لاستخدام PrepKit.

كيف نتعامل مع بريدك الإلكتروني