-
Notifications
You must be signed in to change notification settings - Fork 15
task_01 #15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
task_01 #15
Conversation
task_01/src/test.cpp
Outdated
#include "topology_sort.hpp" | ||
|
||
TEST(TopologySort, Simple) { | ||
ASSERT_EQ(1, 1); // Stack [] | ||
std::pair<int, int> solution(int number, std::vector<int> v) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
вынеси в отдельный файл
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Сделано
@@ -0,0 +1,19 @@ | |||
#include <vector> | |||
//#include <priority_queue> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
это наверное нужно утащить в другой ПР со вторым заданием
task_01/src/solution.h
Outdated
indices_map | ||
.end()) { // if key "number - t" exists, we have found the solution | ||
return {indices_map[sum - v[i]], i}; | ||
flag = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
а давай подумаем, мы сюда когда-нибудь попадем?)
an actual pull request