
https://school.programmers.co.kr/learn/courses/30/lessons/120890 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr public int solution(int[] array, int n) { int answer = 0; Arrays.sort(array); for(int i = 1 ; i Math.abs(n-array[i])){ array[0] = array[i]; } } answer = array[0]; return ans..

https://school.programmers.co.kr/learn/courses/30/lessons/120887 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr public int solution(int i, int j, int k) { int answer = 0; for(int a = i; a

https://school.programmers.co.kr/learn/courses/30/lessons/120842?language=java 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr public int[][] solution(int[] num_list, int n) { int[][] answer = new int[num_list.length/n][n]; int count=0; for(int i=0; i

https://school.programmers.co.kr/learn/courses/30/lessons/120886 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr public int solution(String before, String after) { char[] a = before.toCharArray(); char[] b = after.toCharArray(); Arrays.sort(a); Arrays.sort(b); return new String(a).equals(new String(b)) ? 1 :0; }

https://school.programmers.co.kr/learn/courses/30/lessons/42862 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr public int solution(int n, int[] lost, int[] reserve) { int answer = 0; int[] arr = new int[n]; for(int i=0;i 0) { answer++; } } return answer; }

https://school.programmers.co.kr/learn/courses/30/lessons/12903 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr public String solution(String s) { String answer = ""; char[] arr = s.toCharArray(); if(arr.length % 2 == 1){ answer += arr[arr.length/2]; }else{ answer += arr[(arr.length/2)-1]; answer += arr[(arr.length/2)]; } return answ..

https://school.programmers.co.kr/learn/courses/30/lessons/120892 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr public String solution(String cipher, int code) { String answer = ""; char[] arr = cipher.toCharArray(); for(int i=0;i

https://school.programmers.co.kr/learn/courses/30/lessons/120893 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr public static String solution(String my_string) { String answer = ""; char[] arr = my_string.toCharArray(); for(char c: arr){ if(Character.isLowerCase(c)){ answer += Character.toUpperCase(c); }else{ answer += Character.toL..

https://school.programmers.co.kr/learn/courses/30/lessons/120894 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr public static long solution(String numbers){ String[] numberArr = {"zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"}; for(int i=0;i

https://school.programmers.co.kr/learn/courses/30/lessons/120895 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 내 풀이 public String solution(String my_string, int num1, int num2) { String answer = ""; String[] strings = my_string.split("",-1); String first = strings[num1]; strings[num1] = strings[num2]; strings[num2] = first; for(Str..