Skip to content

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

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Open

task_01 #15

wants to merge 15 commits into from

Conversation

H0p1ty
Copy link

@H0p1ty H0p1ty commented Feb 24, 2024

an actual pull request

#include "topology_sort.hpp"

TEST(TopologySort, Simple) {
ASSERT_EQ(1, 1); // Stack []
std::pair<int, int> solution(int number, std::vector<int> v) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

вынеси в отдельный файл

Copy link
Author

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>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

это наверное нужно утащить в другой ПР со вторым заданием

indices_map
.end()) { // if key "number - t" exists, we have found the solution
return {indices_map[sum - v[i]], i};
flag = true;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

а давай подумаем, мы сюда когда-нибудь попадем?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants