[스터디] Java 프로그래머스 기초 40문제 (25.02.13)
·
LG 유플러스 유레카 SW/스터디
프로그래머스 코딩테스트 기초 문제 풀기1. 문자열을 정수로 변환하기class Solution { public int solution(String n_str) { return Integer.parseInt(n_str); }}2. 문자열 정수의 합class Solution { public int solution(String num_str) { int answer = 0; for (char s : num_str.toCharArray()) { answer += s - '0'; } return answer; }}3. 정수 부분class Solution { public int solution(double f..