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