일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 밴픽
- Regular Expression
- LeetCode
- t1
- data science
- 43. Multiply Strings
- shiba
- Python Code
- 컴퓨터의 구조
- Class
- DWG
- Decorator
- iterator
- Generator
- attribute
- 운영체제
- Convert Sorted List to Binary Search Tree
- Python Implementation
- 프로그래머스
- Python
- Substring with Concatenation of All Words
- 715. Range Module
- kaggle
- concurrency
- 30. Substring with Concatenation of All Words
- 시바견
- Protocol
- 109. Convert Sorted List to Binary Search Tree
- 파이썬
- 315. Count of Smaller Numbers After Self
Archives
- Today
- Total
목록Partition List (1)
Scribbling
LeetCode: 86. Partition List
간단하면서도 재밌는 문제 # Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = val # self.next = next class Solution: def partition(self, head: Optional[ListNode], x: int) -> Optional[ListNode]: smaller_train = ListNode() s_ptr = smaller_train bigger_train = ListNode() b_ptr = bigger_train cur = head while cur != None: if cur.val < x: s_ptr.next = cur s..
Computer Science/Coding Test
2021. 10. 6. 16:26