일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 43. Multiply Strings
- concurrency
- 밴픽
- Class
- 315. Count of Smaller Numbers After Self
- DWG
- kaggle
- 715. Range Module
- Protocol
- shiba
- 운영체제
- Generator
- Decorator
- Substring with Concatenation of All Words
- attribute
- 30. Substring with Concatenation of All Words
- 시바견
- LeetCode
- 컴퓨터의 구조
- 파이썬
- Regular Expression
- Python Implementation
- data science
- Python
- 109. Convert Sorted List to Binary Search Tree
- t1
- 프로그래머스
- Python Code
- iterator
- 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 |