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