Skip to content

leetcode82 提供更多的解法 #69

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 1 commit into from
Sep 18, 2020
Merged

Conversation

Janetyu
Copy link
Contributor

@Janetyu Janetyu commented Sep 16, 2020

两种解法都是用虚拟空结点实现,第一种比较简单,但用了双重循环,第二种是想着用单循环去实现,我觉得大佬这个写法有点长了,于是自己去想了另一种实现方式~

@Janetyu
Copy link
Contributor Author

Janetyu commented Sep 16, 2020

顺带提一个 bug,就是电子书 82 题那里,好像因为代码太多了,没有完全显示完,即便是原有答案

@codecov-commenter
Copy link

Codecov Report

Merging #69 into master will decrease coverage by 0.23%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #69      +/-   ##
==========================================
- Coverage   72.95%   72.72%   -0.24%     
==========================================
  Files         521      521              
  Lines       11833    11871      +38     
==========================================
  Hits         8633     8633              
- Misses       2939     2977      +38     
  Partials      261      261              
Impacted Files Coverage Δ
...st-II/82. Remove Duplicates from Sorted List II.go 33.70% <0.00%> (-25.12%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ec09c8d...8ab50ac. Read the comment docs.

@halfrost
Copy link
Owner

顺带提一个 bug,就是电子书 82 题那里,好像因为代码太多了,没有完全显示完,即便是原有答案

@Janetyu 我刚刚看了一下,好像没 bug 呀,代码都显示完了。你说的是网页版吧?

@Janetyu
Copy link
Contributor Author

Janetyu commented Sep 16, 2020

对,网页版电子书

@halfrost
Copy link
Owner

对,网页版电子书

@Janetyu 我看显示完整了呀。。你标注一下,哪里不完整呢???

@Janetyu
Copy link
Contributor Author

Janetyu commented Sep 16, 2020

你的源代码里还有一个 deleteDuplicates 函数的吧?
image

@halfrost halfrost merged commit 1b5cde3 into halfrost:master Sep 18, 2020
@halfrost
Copy link
Owner

@Janetyu 谢谢你指出问题,代码显示不完整的问题我也修复了,你的 2 个解法也很简洁,学习了~🙏🏻 感谢你

halfrost added a commit that referenced this pull request Sep 18, 2020
leetcode82 提供更多的解法
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