
Algorithm/프로그래머스
[알고리즘] 영어가 싫어요 Java
import java.util.HashMap; class Solution { public long solution(String numbers) { long answer = 0; HashMap map = new HashMap(); map.put("zero", 0); map.put("one", 1); map.put("two", 2); map.put("three", 3); map.put("four", 4); map.put("five", 5); map.put("six", 6); map.put("seven", 7); map.put("eight", 8); map.put("nine", 9); for (String s : map.keySet()) { numbers = numbers.replaceAll(s, String..