2024/04/222 leetcode 3046. Split the Array https://leetcode.com/problems/split-the-array/description/ 12345678class Solution: def isPossibleToSplit(self, nums: List[int]) -> bool: set_nums = list(set(nums)) for num in set_nums: if nums.count(num) >= 3: return False return TrueColored by Color Scriptercs 2024. 4. 22. leetcode 3110. Score of a String https://leetcode.com/problems/score-of-a-string/description/ 1234567class Solution: def scoreOfString(self, s: str) -> int: answer = 0 for i in range(1, len(s)): answer += abs(ord(s[i]) - ord(s[i-1])) return answercs 2024. 4. 22. 이전 1 다음