Skip to content

Add 83. Remove Duplicates from Sorted List.md #3

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Add 83. Remove Duplicates from Sorted List.md #3

wants to merge 3 commits into from

Conversation

t0hsumi
Copy link
Owner

@t0hsumi t0hsumi commented Nov 24, 2024

next_node = self.deleteDuplicates(head.next)
if next_node is not None and head.val == next_node.val:
return next_node
else:

Choose a reason for hiding this comment

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

elseを消してインデントを下げると読みやすいかなと思いました

h1rosaka/arai60#2 (comment)

# なんかする
node = node.next
```
となっていて、「なんかする」部分だけやることの言語化をサボらなければ解けそう。
Copy link

Choose a reason for hiding this comment

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

解法を思いつくこつはこれですね。
自然言語で身体性をもって考えるというのがわりと大切だと思っています。

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