코딩테스트/프로그래머스(JAVA)

프로그래머스 스쿨 코딩테스트 Lv. 0 숫자 비교하기 java 문제 풀이

쏠솔랄라 2023. 4. 8. 18:49

 

 

프로그래머스 스쿨 코딩테스트 단계별로 풀어보기

Lv. 0 숫자 비교하기 문제 자바 풀이입니다

 

 

https://school.programmers.co.kr/learn/courses/30/lessons/120807

 

프로그래머스

코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.

programmers.co.kr

 

 


 

 

문제

 

 

 

public class Solution {

public int solution (int num1, int num2) {

 

if (num1==num2) {

return 1;

} else {

return -1;

}

}

}

 

=>

이제 슬슬 프로그래머스의 로직에 익숙해지고 있습니다

달려 보겠습니다

 

 


 

 

Lv. 0 두 수의 합 https://developernew.tistory.com/127

Lv. 0 두 수의 차 https://developernew.tistory.com/128

Lv. 0 두 수의 곱 https://developernew.tistory.com/129

Lv. 0 몫 구하기 https://developernew.tistory.com/130

 

Lv .0 두 수의 나눗셈 https://developernew.tistory.com/131