Skip to content
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

第二次任务 #157

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

第二次任务 #157

wants to merge 7 commits into from

Conversation

James-Tao
Copy link

No description provided.

#include <iostream>
using namespace std;

void addBtoA(int arrA[], int arrB[]) // ʹ����B����A��
Copy link
Member

Choose a reason for hiding this comment

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

留意一下编码问题,乱码了

@James-Tao
Copy link
Author

第二次任务第二次pr--黄文涛

arrA[i + j + 1] = arrB[j];
j--;
}
while (j >= 0)//当B中有剩余的值时,将剩余的值赋到A中

Choose a reason for hiding this comment

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

这里貌似是个死循环

@James-Tao
Copy link
Author

第二次任务第三次修改

@James-Tao
Copy link
Author

第二次任务第三次修改,将一整个cpp的汇总拆为6个题目相对应的cpp文件

Copy link
Author

@James-Tao James-Tao left a comment

Choose a reason for hiding this comment

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

review

@James-Tao
Copy link
Author

第三次任务

@gabor1252
Copy link

完成得不错,有几点建议:

  1. 不用的变量就不要定义了,想清楚再定义。
  2. 可以在关键步骤适当加点注释,这样维护/理解更加方便。可以参考各种开源项目的注释说明。
  3. 在自己很难做到的方面(例如你说到的“无法想到更好的方法去降低时间复杂度”)可以多查查资料,问问其他人来拓展思路。可以把解决的过程或者方法记录下来,方便自己复习/整理出属于自己的解决问题的套路。

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.

4 participants