본문 바로가기

Problem Solving37

[프로그래머스] L1 실패율 / 2019 카카오 블라인드 채용 (Java) [프로그래머스] L1 실패율 / 2019 카카오 블라인드 채용 [풀이] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 import java.util.*; class Solution { class FR implements Comparable{ int stage; double rate; public FR(int stage, double rate){ this.stage = stage; this.rate = rate; } @Override public int compareTo(FR f){ if(this.rate > f.rate) .. 2020. 12. 19.
[프로그래머스] L1 예산 [프로그래머스] L1 예산 [풀이] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 import java.util.*; class Solution { public int solution(int[] d, int budget) { int answer = 0; Arrays.sort(d); for(int i=0; i= d[i]){ budget -= d[i]; answer++; } } return answer; } } Colored by Color Scripter cs 2020. 12. 19.
[프로그래머스] L1 다트 게임 / 2018 카카오 블라인드 채용 (Java) [프로그래머스] L1 다트 게임 / 2018 카카오 블라인드 채용 [풀이] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 import java.util.*; class Solution { public int solution(String dR) { int answer = 0; Stack stack = new Stack(); for(int i=0; i 2020. 12. 19.
[프로그래머스] L1 비밀지도 / 2018 카카오 블라인드 채용 (Java) [프로그래머스] L1 비밀지도 / 2018 카카오 블라인드 채용 [풀이] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 class Solution { public String[] solution(int n, int[] arr1, int[] arr2) { String[] answer = new String[n]; for(int i=0; i 2020. 12. 19.