Denque-on-Greasy-Fork

(https://github.com/Salakar) מימוש מהיר ומנוסה של תור דו-קצוות המבוסס על חוצץ טבעתי

נכון ליום 24-12-2025. ראה הגרסה האחרונה.

אין להתקין סקריפט זה ישירות. זוהי ספריה עבור סקריפטים אחרים // @require https://updategf.qytechs.cn/scripts/559642/1720405/Denque-on-Greasy-Fork.js

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

יוצר
JasonMel
גרסה
2.1.0f
נוצר
20-12-2025
עודכן
24-12-2025
Size
19.2 קילו-בייט
רישיון
Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)

Denque היא מימוש תור דו-קצה שנבדקה היטב, מהירה מאוד וקלה במשקל עם אפס תלותים וכוללת סוגים של TypeScript. מימוש זה הוא במדויק המהיר ביותר הזמין, אפילו מהיר יותר מ-double-ended-queue, ראה את הבנצ'מרקים. כל פעולה של תור מתבצעת בקבוע O(1) - כולל גישה אקראית מ-.peekAt(index).