287. Find the Duplicate Number 이 문제 LeetCode 287. Find the Duplicate Number는 배열을 수정하지 않고,**O(1)**의 추가 공간만으로 중복된 숫자 하나를 찾아야 하는 문제예요. 내 코드class Solution: def findDuplicate(self, nums: List[int]) -> int: # nums 수정하지 말고, 공간복잡도는 O(1) 로..!! # n+1 개수 n = len(nums)-1 res = 1 for i in range(2, n+1): res ^= i for n in nums: res ^= ..