Repository navigation
LAB_3 - Ахмедов Б. - #1897
LAB_3 - Ахмедов Б.#1897Blacklink-afk45 wants to merge 8 commits into
Conversation
|
Нужны тесты для контейнеров. |
| #include "list.h" | ||
|
|
||
| struct Queue { | ||
| List list; |
There was a problem hiding this comment.
Поля должны быть в секции private
|
|
||
| struct Queue { | ||
| List list; | ||
| ListItem* last; |
There was a problem hiding this comment.
last можно запросить у списка.
| } | ||
| std::cout << "\n"; | ||
|
|
||
| list_delete(list); |
There was a problem hiding this comment.
Существующие проверки удалять нельзя.
| | x | # | # | # | | ||
| \ / \ / \ / \ / | ||
| | x | x | E | | ||
| \ / \ / \ / |
There was a problem hiding this comment.
Не хватает больших тестов с развилками.
There was a problem hiding this comment.
Файлы от задачи должны быть не в библиотеке.
|
Файлы не относящиеся к библиотеке всё ещё хранятся там. |
|
Нет тестов для контейнеров. |
| void queue_insert(Queue* queue, Data data); | ||
| Data queue_get(const Queue* queue); | ||
| void queue_remove(Queue* queue); | ||
| bool queue_empty(const Queue* queue); |
There was a problem hiding this comment.
Должен быть либо интерфейс в виде класса, либо в виде набора функций, но не одновременно.
| { | ||
| struct List { | ||
| ListItem dummy; | ||
| ListItem* last; |
There was a problem hiding this comment.
Последний элемент можно просто находить.
| int meeting = -1; | ||
| long long best_distance = numeric_limits<long long>::max(); | ||
|
|
||
| auto expand_layer = [&](Queue& queue, vector<int>& distance, |
There was a problem hiding this comment.
Большие функции должны быть описаны отдельно.
No description provided.