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
- Git
- 캐치카페
- github
- gs25
- programmers
- 프로그래머스 파이썬
- AI 경진대회
- 프로그래머스
- leetcode
- Real or Not? NLP with Disaster Tweets
- Docker
- Baekjoon
- 편스토랑 우승상품
- 우분투
- 더현대서울 맛집
- 금융문자분석경진대회
- hackerrank
- 자연어처리
- 백준
- dacon
- ubuntu
- PYTHON
- ChatGPT
- 파이썬
- 편스토랑
- 맥북
- Kaggle
- SW Expert Academy
- 코로나19
- 데이콘
Archives
- Today
- Total
목록
반응형
203. Remove Linked List Elements (1)
반응형
솜씨좋은장씨
[leetCode] 203. Remove Linked List Elements (Python)
Remove all elements from a linked list of integers that have value val. Example: Input: 1->2->6->3->4->5->6, val = 6 Output: 1->2->3->4->5 Solution # Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = val # self.next = next class Solution: def removeElements(self, head: ListNode, val: int) -> ListNode: while head and head.val == val: head = ..
Programming/코딩 1일 1문제
2020. 9. 29. 15:43
반응형