나는 이렇게 학습한다/Algorithm & SQL

1104. Sum Mixed Array

daco2020 2022. 11. 4. 18:47
반응형

Given an array of integers as strings and numbers, return the sum of the array values as if all were numbers.

Return your answer as a number.



sum_mix = lambda x: sum(map(int, x))


반응형

'나는 이렇게 학습한다 > Algorithm & SQL' 카테고리의 다른 글

1106. Grasshopper - Messi Goals  (0) 2022.11.07
1105. Remove exclamation marks  (0) 2022.11.05
1103. Welcome!  (0) 2022.11.04
1102. Welcome to the City  (0) 2022.11.02
1101. Fix your code before the garden dies!  (0) 2022.11.01