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

【003-week1】总结 #79

Open
kdbreboot opened this issue Apr 19, 2019 · 1 comment
Open

【003-week1】总结 #79

kdbreboot opened this issue Apr 19, 2019 · 1 comment

Comments

@kdbreboot
Copy link
Contributor

学习笔记

本周投身项目,时间不是很充足,只做了两道简单的算法题,周日如果没事,会补做第一周的其他作业
做了两道题:83(合并有序链表)和21(删除有序链表中的重复元素)
心得:

  • ListNode *p 只是指针,如果引用未初始化的p, 比如p->next 就会发生访问访问野指针,编译器报segment fault
  • 构造测试数据可以通过命令行传参: int main(int argc, char *argv[])
@yanlingli3799
Copy link
Contributor

野指针是C/C++语言里最经常踩到的坑,现在转Java 基本不会遇到了。

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

No branches or pull requests

2 participants