[LeetCode] 665. Non-decreasing Array
Python class Solution: def checkPossibility(self, nums: List[int]) -> bool: count = 0 for i in range(1, len(nums)): if num...
Python class Solution: def checkPossibility(self, nums: List[int]) -> bool: count = 0 for i in range(1, len(nums)): if num...
Python class Solution: def buddyStrings(self, s: str, goal: str) -> bool: count = 0 if len(s) != len(goal) or sorted(s) != sorted(goal...
Python class Solution: def minPartitions(self, n: str) -> int: return max(n)
Python class Solution: def kidsWithCandies(self, candies: List[int], extraCandies: int) -> List[bool]: temp = max(candies) answer = []...
Python class Solution: def numIdenticalPairs(self, nums: List[int]) -> int: answer = 0 for i in range(len(nums)): for j in...