Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/mypy.yml → .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Mypy
name: Lint

on:
push:
Expand All @@ -21,7 +21,7 @@ jobs:
python-version: 3.12
- name: Install dependencies
run: |
pip install -r requirements.txt
pip install ruff==0.3.4 mypy==1.20.2
- name: Lint
run: |
make lint
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -160,3 +160,4 @@ cython_debug/
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
.idea/
assets/extra/
tasks.xlsx
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
## Ключевые особенности

- **15+** разобранных тем, к каждой теме легкий конспект
- **70+** практических задач с LeetCode, тренировок от Яндекса и реальных собеседований
- **70+** практических задач с LeetCode, Stepik и собеседований в БигТех
- Решение **к каждой задаче** на лаконичном Python с комментариями
- **800+** автоматизированных тестов для проверки решений
- **1000+** автоматизированных тестов для проверки решений

## Структура курса

Expand All @@ -28,11 +28,12 @@
| 13 | Деревья | Продвинутые структуры данных | `trees` |
| 14 | Кучи | Продвинутые структуры данных | `heaps` |
| 15 | Непересекающиеся множества | Продвинутые структуры данных | `dsu` |
| 16 | Графы | Продвинутые структуры данных | `graphs` |
| 16 | Хеш-таблицы | Продвинутые структуры данных | `hash_tables` |
| 17 | Графы | Продвинутые структуры данных | `graphs` |

Каждая тема содержит:

* **Теоретический конспект**, легко и доступно объясняющий тему (файл `ABSTRACT.md`)
* **Теоретический конспект**, легко и доступно объясняющий тему (папка `/abstract/`, например `/abstract/intro.md`)
* **Подборка задач** разного уровня сложности на отработку полученных навыков (файл `README.md`)
* **Решения задач** из подборки на Python (файлы `*.py`, например `fib.py`)
* **Автотесты** для каждого решения, покрывающие минимальный набор ошибок (папка `/tests/`, например
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 3 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ distlib==0.3.9
filelock==3.17.0
identify==2.6.7
iniconfig==2.0.0
mypy==1.8.0
librt==0.9.0
mypy==1.20.2
mypy-extensions==1.0.0
nodeenv==1.9.1
packaging==23.2
pathspec==0.12.1
pathspec==1.1.1
platformdirs==4.2.0
pluggy==1.4.0
pre_commit==4.1.0
Expand Down
2 changes: 1 addition & 1 deletion src/base_ds/calculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def evaluate_postfix(expression: str) -> float:
if token in operators:
operand2 = stack.pop()
operand1 = stack.pop()
result = operators[token](operand1, operand2) # type: ignore[no-untyped-call]
result = operators[token](operand1, operand2)
stack.append(result)
else:
stack.append(float(token))
Expand Down
Loading
Loading