(Python, Java) 프로그래머스 - 문자열을 정수로 바꾸기

[문제 링크]

Python 풀이

def solution(s):
    return int(s)

Java 풀이

class Solution {
    public int solution(String s) {
        return Integer.parseInt(s);
    }
}

© 2021. By Backtony