728x90
반응형
- [프로그래머스 코딩테스트] java Lv.0 외계어 사전chantlemanclass Solution { public int solution(String[] spell, String[] dic) { int answer = 2; boolean chk=false; for(String d:dic){ for(String s:spell){ if(!d.contains(s)) { chk=true; } } if(!chk) return 1; chk=false; ..
- 2024-08-09 10:01:00
- [프로그래머스 코딩테스트] java Lv.0 삼각형의 완성조건(2)chantlemanimport java.util.*; class Solution { public int solution(int[] sides) { int answer = 0; Arrays.sort(sides); int min=sides[0]; int max=sides[1]; int high = min+max; int low = max-min; answer=high-low-1; return answer; } }
- 2024-08-09 09:45:14
- [프로그래머스 코딩테스트] java Lv.0 문자열 계산하기chantlemanclass Solution { public int solution(String my_string) { int answer = 0; String[] tokens = my_string.split(" "); answer=Integer.parseInt(tokens[0]); String temp=""; for(int i=1;i
- 2024-08-09 09:44:11
- [프로그래머스 코딩테스트] java Lv.0 소인수분해chantlemanimport java.util.*; class Solution { public int[] solution(int n) { List list = new ArrayList(); int temp=n; for(int i=2;i
- 2024-08-08 09:51:14
- [프로그래머스 코딩테스트] java Lv.0 이진수 더하기chantlemanclass Solution { public String solution(String bin1, String bin2) { String answer = ""; int num1 = Integer.parseInt(bin1, 2); int num2 = Integer.parseInt(bin2, 2); int res = num1+num2; answer = Integer.toBinaryString(res); return answer; } } class Solution { public String solution(String bin1, Stri..
- 2024-08-08 09:50:05
- [프로그래머스 코딩테스트] java Lv.0 잘라서 배열로 저장하기chantlemanclass Solution { public String[] solution(String my_str, int n) { String[] answer = new String[my_str.length()%n==0? my_str.length()/n:my_str.length()/n+1]; int t=0; for(int i=0;i
- 2024-08-08 09:48:35
- [프로그래머스 코딩테스트] java Lv.0 컨트롤 제트chantlemanimport java.util.*; class Solution { public int solution(String s) { int answer = 0; Stack stack = new Stack(); for(String str : s.split(" ")) { if(str.equals("Z")) { stack.pop(); } else{ stack.push(str); } } ..
- 2024-08-07 09:47:37
- [프로그래머스 코딩테스트] java Lv.0 7의 개수chantlemanclass Solution { public int solution(int[] array) { int answer = 0; for(int num:array) { String s = num+""; for(char ch : s.toCharArray()) { if(ch-'0'==7) answer++; } } return answer; } } class Solution { public int solution(int[] array)..
- 2024-08-07 09:38:08
728x90
반응형
스킨 업데이트 안내
현재 이용하고 계신 스킨의 버전보다 더 높은 최신 버전이 감지 되었습니다. 최신버전 스킨 파일을 다운로드 받을 수 있는 페이지로 이동하시겠습니까?
("아니오" 를 선택할 시 30일 동안 최신 버전이 감지되어도 모달 창이 표시되지 않습니다.)