프로그래밍/프로그래머스8 문자열로 변환_자바 문제 설명 정수 n이 주어질 때, n을 문자열로 변환하여 return하도록 solution 함수를 완성해주세요. https://school.programmers.co.kr/learn/courses/30/lessons/181845 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr class Solution { public String solution(int n) { String answer = ""; answer = Integer.toString(n); return answer; } } 아 자꾸 C# 문법이 머리에서 떠나질 않네... Conver.Tostrin.. 2023. 12. 9. 특정한 문자를 대문자로 바꾸기_자바 문제 영소문자로 이루어진 문자열 my_string과 영소문자 1글자로 이루어진 문자열 alp가 매개변수로 주어질 때, my_string에서 alp에 해당하는 모든 글자를 대문자로 바꾼 문자열을 return 하는 solution 함수를 작성해 주세요. https://school.programmers.co.kr/learn/courses/30/lessons/181873 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr public String solution(String my_string, String alp) { String answer = ""; answer .. 2023. 12. 9. 조건에 맞게 수열 변환하기 1_자바 https://school.programmers.co.kr/learn/courses/30/lessons/181882 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr class Solution { public int[] solution(int[] arr) { int[] answer = new int[arr.length]; for(int i = 0; i= 50 && arr[i] %2 == 0){ answer[i] = arr[i] /2; }else if(arr[i] < 50 && arr[i] %2 != 0){ answer[i] = arr[i] *2; }else{.. 2023. 12. 9. 첫 번째로 나오는 음수_자바 class Solution { public int solution(int[] num_list) { int answer = 0; for(int i = 0; i< num_list.length; i++){ if(num_list[i] < 0){ answer = i; break; }else{ answer = -1; } } return answer; } } https://school.programmers.co.kr/learn/courses/30/lessons/181896 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 오.. 역시 첫문제가 쉽다. 2023. 12. 9. 이전 1 2 다음