[LeetCode] 66. Plus One
Python class Solution: def plusOne(self, digits: List[int]) -> List[int]: digits = list(map(str, digits)) answer = int(''.join(digits)...
Python class Solution: def plusOne(self, digits: List[int]) -> List[int]: digits = list(map(str, digits)) answer = int(''.join(digits)...
Python ~~~python The isBadVersion API is already defined for you. def isBadVersion(version: int) -> bool:
Python class Solution: def isPalindrome(self, x: int) -> bool: if str(x) == str(x)[::-1]: return True else: re...
Python class Solution: def longestCommonPrefix(self, strs: List[str]) -> str: if not strs: return "" temp = min(strs, key=...
Python class Solution: def romanToInt(self, s: str) -> int: temps = { "I": 1, "V": 5, "X": 10, ...