Solutions for String to Integer (atoi)

    • @AaronSkake
    • @Daniel, submitted in Python 3, achived 100% score
    
    def solve(string):
        try:
            st=int(string)
            return st
        except:
            return -1
    
    
    • @AaronSkake
    • @Daniel, submitted in Python 3, achived 100% score
    
    def solve(string):
        try:
            st=int(string)
            return st
        except:
            return -1