Skip to content

Conversation

@H0p1ty
Copy link

@H0p1ty H0p1ty commented Mar 9, 2024

Pull request for task_01

// 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
Contributor

Choose a reason for hiding this comment

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

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

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.

2 participants