-
Notifications
You must be signed in to change notification settings - Fork 0
Create RemoveDuplicateFromSortedList.md #4
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
base: main
Are you sure you want to change the base?
Conversation
|
||
### 時間測定 | ||
3:31, 1:20, 1:50 | ||
今回はいろんなパターンで書いてみたのもあってか、2回目以降はなんとなく覚えてしまっていて、全然頭を使えていない感じがするのが少し不安… |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1ヶ月後にでも見てみたらいいと思います。
- 元のリストがsortされていることが頭から抜け落ちており、また、先の問題も引きずって「valueのsetを作る」という頭から切り替えられなかったこと | ||
- コードを頭の中でシミュレーションする力が不足していて、少しテストのパターンが変わると対応できなかったこと | ||
- コードに落とし込む段階でもう少しお絵描きするなど、事前に頭の中を整理しておくといいのかも。 | ||
- 供養も兼ねて元の発想のまま修正して通してみる |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
これが自力で書けていたらいいと思います。全体的にやっていることは合っています。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
いいと思います
RemoveDuplicateFromSortedList.md
Outdated
- 供養も兼ねて元の発想のまま修正して通してみる | ||
|
||
### Step1のコード | ||
‘’’Python |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
バッククオートにすると色がつきます。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
```
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
どこかで認識がすり替わっていたようです。ご指摘ありがとうございます。
ご指摘いただいたのでバッククォートに修正
問題:https://leetcode.com/problems/remove-duplicates-from-sorted-list/description/