프로그래머스408 [프로그래머스 / SQL] 여러 기준으로 정렬하기 -CodeSELECT ANIMAL_ID, NAME, DATETIME FROM ANIMAL_INS ORDER BY NAME ASC, DATETIME DESC; 2025. 3. 2. [프로그래머스 / SQL] 나이 정보가 없는 회원 수 구하기 -CodeSELECT COUNT(*) FROM USER_INFO WHERE AGE IS NULL; 2025. 3. 2. [프로그래머스 / SQL] 동물의 아이디와 이름 -CodeSELECT ANIMAL_ID, NAME FROM ANIMAL_INS ORDER BY ANIMAL_ID ASC; 2025. 3. 2. [프로그래머스/Java] 로또의 최고 순위와 최저 순위 -Codeimport java.util.*;import java.util.stream.Collectors;class Solution { public int[] solution(int[] lottos, int[] win_nums) { List win_list = Arrays.stream(win_nums) .boxed().collect(Collectors.toList()); int current_cnt = 0, zero_cnt = 0; for (int n : lottos) { if (n == 0) { zero_cnt++; continue; } .. 2025. 3. 1. [프로그래머스/Java] 괄호 회전하기 -Codeimport java.util.*;class Solution { public int solution(String s) { int answer = 0; int len = s.length(); Deque deq = new ArrayDeque(); for (int i = 0; i 2025. 3. 1. [프로그래머스/Java] N개의 최소공배수 -Codeclass Solution { public int solution(int[] arr) { int answer = 1; for (int num : arr) { answer = answer * num / getGcd(num, answer); } return answer; } public static int getGcd(int num1, int num2) { return num2 == 0 ? num1 : getGcd(num2, num1 % num2); }} 2025. 3. 1. 이전 1 ··· 3 4 5 6 7 8 9 ··· 68 다음