알고리즘 풀이 방법입니다.
문제(Problem) -> 생각(Think) -> 해결책(Solution) -> 리뷰(Review) 를 통해서 정리해서 작성합니다.
Problem📄
https://school.programmers.co.kr/learn/courses/30/lessons/120819
프로그래머스
코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.
programmers.co.kr
Think🤔
쉬운 문제
Solution✍
class Solution {
public int[] solution(int money) {
int[] answer = new int[2];
answer[0] = money / 5500;
answer[1] = money % 5500;
return answer;
}
}
class Solution {
public int[] solution(int money) {
return new int[] { money / 5500 , money % 5500};
}
}
Review🤩
쉽게 풀었음..
'Algorithm' 카테고리의 다른 글
[프로그래머스] 둘만의 암호 (0) | 2024.01.11 |
---|---|
[프로그래머스] 대충 만든 자판 (0) | 2024.01.09 |
[프로그래머스] 배열 두 배 만들기 (0) | 2024.01.05 |
[프로그래머스] 배열 원소의 길이 (0) | 2024.01.05 |
[프로그래머스] 글자 이어 붙여 문자열 만들기 (0) | 2024.01.05 |