분류 전체보기

코딩테스트/코딩테스트 문제풀이

[Java] 프로그래머스 <정수 제곱근 판별>

https://school.programmers.co.kr/learn/courses/30/lessons/12934 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr class Solution { public long solution(long n) { long answer = 0; // 제곱근 구하는 함수 double -> long 형변환 long x = (long)Math.sqrt(n); if(x long 형변환 return (long)Math.pow(x+1, 2); }}

코딩테스트/코딩테스트 문제풀이

[Java] 프로그래머스 <자연수 뒤집어 배열로 만들기>

https://school.programmers.co.kr/learn/courses/30/lessons/12932 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr import java.util.*;class Solution { public int[] solution(long n) { // 정수의 길이 구하기 *** int length = (int)(Math.log10(n)+1); int[] answer = new int[length]; for(int i = 0; i

코딩테스트/코딩테스트 문제풀이

[Java] 프로그래머스 <모의고사>

https://school.programmers.co.kr/learn/courses/30/lessons/42840 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr import java.util.*;class Solution { public int[] solution(int[] answers) { int[] first = {1, 2, 3, 4, 5}; int[] second = {2, 1, 2, 3, 2, 4, 2, 5}; int[] third = {3, 3, 1, 1, 2, 2, 4, 4, 5, 5}; int[] score = {0, 0, 0}; ..

코딩테스트/코딩테스트 문제풀이

[Java] 프로그래머스 <최소직사각형>

https://school.programmers.co.kr/learn/courses/30/lessons/86491 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr import java.util.*;class Solution { public int solution(int[][] sizes) { int wMax = 0; int hMax = 0; for(int i = 0; i

Yang Ji Woo
'분류 전체보기' 카테고리의 글 목록 (33 Page)