Skip to content

Task 01 fixed x2#23

Open
H0p1ty wants to merge 15 commits intoAlgorithmsDafeMipt2024:mainfrom
H0p1ty:task_01
Open

Task 01 fixed x2#23
H0p1ty wants to merge 15 commits intoAlgorithmsDafeMipt2024:mainfrom
H0p1ty:task_01

Conversation

@H0p1ty
Copy link
Copy Markdown

@H0p1ty H0p1ty commented Mar 9, 2024

Pull request for task_01

Comment thread task_01/src/solution.h Outdated
// Solution below has a time complexity of O(n) and memory complexity of O(n)

std::pair<int, int> solution(int sum, std::vector<int> v) {
std::unordered_map<int, int> indices_map; // keeps array numbers as keys and
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ок, но можно без дополнительной памяти

Comment thread testfile.txt
Copy link
Copy Markdown
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.

2 participants