[LeetCode] 88. Merge Sorted Array
Python class Solution: def merge(self, nums1: List[int], m: int, nums2: List[int], n: int) -> None: """ Do not return anything, modify...
Python class Solution: def merge(self, nums1: List[int], m: int, nums2: List[int], n: int) -> None: """ Do not return anything, modify...
Python class Solution: def findComplement(self, num: int) -> int: binary = bin(num)[2:] answer = '' for i in binary: ...
Python class Solution: def hammingWeight(self, n: int) -> int: return bin(n).count('1')
Python class Solution: def findDisappearedNumbers(self, nums: List[int]) -> List[int]: return set(range(1, len(nums) + 1)) - set(nums)
Python def solution(citations): citations.sort() for i in range(len(citations)): if citations[i] >= len(citations) - i: return...