July 24, 2021
def solution(s): return int(s)
def strToInt(str): result = 0 for idx, number in enumerate(str[::-1]): if number == '-': result *= -1 else: result += int(number) * (10 ** idx) return result
GitHubVelogFacebook