Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd67db50

Browse files
Stulov Alextrekhleb
Stulov Alex
authored andcommitted
Translate stack into Russian. (trekhleb#277)
1 parentf53eb17 commitd67db50

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

‎src/data-structures/stack/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#Stack
22

3+
_Read this in other languages:_
4+
[_简体中文_](README.zh-CN.md),
5+
[_Русский_](README.ru-RU.md)
6+
37
In computer science, a**stack** is an abstract data type that serves
48
as a collection of elements, with two principal operations:
59

@@ -13,7 +17,7 @@ the stack. The name "stack" for this type of structure comes
1317
from the analogy to a set of physical items stacked on top of
1418
each other, which makes it easy to take an item off the top
1519
of the stack, while getting to an item deeper in the stack
16-
may require taking off multiple other items first
20+
may require taking off multiple other items first.
1721

1822
Simple representation of a stack runtime with push and pop operations.
1923

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#Стек
2+
3+
Стек (англ. stack — стопка) — абстрактный тип данных, представляющий собой
4+
список элементов, организованных по принципу LIFO (последним пришёл — первым вышел).
5+
6+
Стек имеет две ключевые операции:
7+
***добавление (push)** элемента в конец стека, и
8+
***удаление (pop)**, последнего добавленного элемента.
9+
10+
Дополнительная операция чтения головного элемента (peek) даёт доступ
11+
к последнему элементу стека без изменения самого стека.
12+
13+
Чаще всего принцип работы стека сравнивают со стопкой тарелок: чтобы взять вторую
14+
сверху, нужно снять верхнюю.
15+
16+
Иллюстрация работы со стеком.
17+
18+
![Стек](https://upload.wikimedia.org/wikipedia/commons/b/b4/Lifo_stack.png)
19+
20+
##Ссылки
21+
22+
-[Wikipedia](https://ru.wikipedia.org/wiki/%D0%A1%D1%82%D0%B5%D0%BA)
23+
-[YouTube](https://www.youtube.com/watch?v=tH8qi7lej5U)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp