mirror of
https://github.com/krahets/hello-algo.git
synced 2026-08-27 10:27:13 +00:00
build
This commit is contained in:
@@ -185,7 +185,7 @@ comments: true
|
||||
|
||||
/* Извлечь элемент из очереди */
|
||||
// Поскольку в основе лежит массив, removeFirst имеет сложность O(n)
|
||||
let pool = queue.removeFirst()
|
||||
let pop = queue.removeFirst()
|
||||
|
||||
/* Получить длину очереди */
|
||||
let size = queue.count
|
||||
|
||||
Reference in New Issue
Block a user