Skip to content

asd#3

Open
Mathew131 wants to merge 7 commits intoAlgorithmsDafeMipt2024:mainfrom
Mathew131:homework_1
Open

asd#3
Mathew131 wants to merge 7 commits intoAlgorithmsDafeMipt2024:mainfrom
Mathew131:homework_1

Conversation

@Mathew131
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread task_01/src/main.cpp

int main() { return 0; }
int main() {
int a;
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 task_01/src/main.cpp
int i = 0;
int j = b.size() - 1;
while (b[i] + b[j] != a) {
if (b[i] + b[j] < a) i++;
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.

++i

Comment thread task_01/src/utils.cpp
@@ -0,0 +1,11 @@
#include "utils.hpp"

std::pair<int, int> Task1(int m, std::vector<int> a) {
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.

давай назовем переменные как-то по другому, а не просто a, m

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