| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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
- 파이썬
- Generator
- Python Code
- 시바견
- concurrency
- DWG
- 43. Multiply Strings
- Python Implementation
- Python
- 프로그래머스
- shiba
- data science
- Class
- Regular Expression
- 운영체제
- 715. Range Module
- Protocol
- LeetCode
- t1
- 109. Convert Sorted List to Binary Search Tree
- 315. Count of Smaller Numbers After Self
- iterator
- kaggle
- 밴픽
- 컴퓨터의 구조
- 30. Substring with Concatenation of All Words
- Substring with Concatenation of All Words
- attribute
- Decorator
- Convert Sorted List to Binary Search Tree
Archives
- Today
- Total
Scribbling
LeetCode: 136. Single Number 본문
class Solution:
def singleNumber(self, nums: List[int]) -> int:
num = nums[0]
for i in range(1, len(nums)):
num ^= nums[i]
return num'Computer Science > Coding Test' 카테고리의 다른 글
| LeetCode: 215. Kth Largest Element in an Array (0) | 2021.12.11 |
|---|---|
| LeetCode: 208. Implement Trie (Prefix Tree) (0) | 2021.12.09 |
| LeetCode: 212. Word Search II (0) | 2021.12.08 |
| LeetCode: 210. Course Schedule II (0) | 2021.12.07 |
| LeetCode: 1011. Capacity To Ship Packages Within D Days (0) | 2021.12.06 |