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

707代码规范化,添加部分comments; 203添加了java版本的递归 #2818

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

Conversation

donghuanjie
Copy link

将外置的ListNode class统一放进MyLinkedList class内部,对外部不可见的封装ListNode class更规范;
format了单向和双向链表两版code的ListNode的名称,统一使用3个字母,和本身构造类中的4个字母错开,更清晰易懂;
统一了size++和size--在方法的末尾而不是中间,更规范,并且方便后期debug;
统一了index判断语句,修改了部分格式没有空格等不规范问题;
修改和添加了部分comment,主要的comment和算法结构都没有修改;
两版code都已通过leetcode test,请放心食用

@donghuanjie donghuanjie changed the title modified 707 code, move the ListNode class inside, reformat the code 规范化修改了707的代码,添加部分comments; 添加了203的java版本的递归 Nov 1, 2024
@donghuanjie donghuanjie changed the title 规范化修改了707的代码,添加部分comments; 添加了203的java版本的递归 707代码规范化,添加部分comments; 203添加了java版本的递归 Nov 12, 2024
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.

1 participant