https://school.programmers.co.kr/learn/courses/30/lessons/12951 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr class Solution { public String solution(String s) { StringBuilder answer = new StringBuilder(); String[] words = s.split(" ", -1); // split의 limit=-1을 사용하여 공백 유지 for (int i = 0; i
https://school.programmers.co.kr/learn/courses/30/lessons/12939 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr class Solution { public String solution(String s) { String answer = ""; String[] sa = s.split(" "); int[] num = new int[sa.length]; for(int i = 0; i max){ max = num[i]; }else i..
https://school.programmers.co.kr/learn/courses/30/lessons/12981 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr import java.util.*;class Solution { public int[] solution(int n, String[] words) { int[] answer = new int[2]; HashSet hashSet = new HashSet(); int cnt = 0; while(cnt
https://school.programmers.co.kr/learn/courses/30/lessons/131127 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr class Solution { public int solution(String[] want, int[] number, String[] discount) { int answer = 0; int day = 0; while (day 0) { // 하나라도 0보다 크면 실패 allMatched = false; break; ..