#=================================== # Tanzila Islam # Email: tanzilamohita@gmail.com # Language: Python 3 #=================================== class Solution: def plusOne(self, digits: List[int]) -> List[int]: map_arr = int(''.join(map(str, digits)))+1 string = ','.join(str(map_arr)) res = [int(item) for item in string.split(',')] return res
No comments:
Post a Comment