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 |
Tags
- 프로그래머스 파이썬
- 프로그래머스
- Kaggle
- ubuntu
- 우분투
- ChatGPT
- github
- hackerrank
- Docker
- 편스토랑 우승상품
- 더현대서울 맛집
- 파이썬
- PYTHON
- AI 경진대회
- 편스토랑
- 맥북
- SW Expert Academy
- 데이콘
- 코로나19
- Baekjoon
- 백준
- Real or Not? NLP with Disaster Tweets
- 캐치카페
- gs25
- dacon
- 자연어처리
- programmers
- Git
- 금융문자분석경진대회
- leetcode
Archives
- Today
- Total
목록
반응형
82. Remove Duplicates from Sorted List II (1)
반응형
솜씨좋은장씨
[leetCode] 82. Remove Duplicates from Sorted List II (Python)
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list. Return the linked list sorted as well. Example 1: Input: 1->2->3->3->4->4->5 Output: 1->2->5 Example 2: Input: 1->1->1->2->3 Output: 2->3 Solution from collections import Counter # Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=Non..
Programming/코딩 1일 1문제
2020. 12. 2. 00:09
반응형