Skip to content

001 号第一周作业: LeetCode24-Swap Nodes in Pairs #17

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

Merged
merged 5 commits into from
Apr 16, 2019

Conversation

zouyingjie
Copy link
Contributor

@zouyingjie zouyingjie commented Apr 15, 2019

001 作业提交

@zouyingjie
Copy link
Contributor Author

001 作业提交

@zouyingjie
Copy link
Contributor Author

001 号第一周作业: LeetCode24-Swap Nodes in Pairs

@zouyingjie zouyingjie changed the title week01:leetcode24-Swap Nodes in Pairs 001 号第一周作业: LeetCode24-Swap Nodes in Pairs Apr 15, 2019
@zouyingjie
Copy link
Contributor Author

001 号第一周作业

@GeekUniversity GeekUniversity merged commit c078a7f into algorithm001:master Apr 16, 2019
Copy link
Contributor

@kevinnerd kevinnerd left a comment

Choose a reason for hiding this comment

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

hello,邹英杰,关于leetCode-24的代码,我看你用的是循环的解法,我想到的是递归的解法,大概思路就是先认为从第三个节点开始,后面的所有节点已经交换完毕,然后问题就变成交换前两个节点,然后链接后面的节点

image

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.

3 participants