Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 데이콘
- 더현대서울 맛집
- 파이썬
- 프로그래머스
- dacon
- programmers
- leetcode
- 우분투
- Docker
- 편스토랑 우승상품
- Baekjoon
- 캐치카페
- Real or Not? NLP with Disaster Tweets
- gs25
- github
- AI 경진대회
- Kaggle
- 편스토랑
- ubuntu
- 맥북
- 금융문자분석경진대회
- 백준
- 프로그래머스 파이썬
- Git
- ChatGPT
- 자연어처리
- 코로나19
- PYTHON
- SW Expert Academy
- hackerrank
Archives
- Today
- Total
목록
반응형
83. Remove Duplicates from Sorted List (1)
반응형
솜씨좋은장씨
[leetCode] 83. Remove Duplicates from Sorted List (Python)
Given a sorted linked list, delete all duplicates such that each element appear only once. Example 1: Input: 1->1->2 Output: 1->2 Example 2: Input: 1->1->2->3->3 Output: 1->2->3 Solution # Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = val # self.next = next class Solution: def deleteDuplicates(self, head: ListNode) -> ListNode: list_val..
Programming/코딩 1일 1문제
2020. 12. 1. 16:56
반응형