https://app.codility.com/programmers/lessons/2-arrays/cyclic_rotation/ CyclicRotation coding task - Learn to Code - Codility Rotate an array to the right by a given number of steps. app.codility.com 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 class Solution { public int[] solution(int[] A, int K) { if(A.length == 1) { return A; } int remainder = K % A.length; //배열 ..
https://app.codility.com/programmers/lessons/2-arrays/odd_occurrences_in_array/ OddOccurrencesInArray coding task - Learn to Code - Codility Find value that occurs in odd number of elements. app.codility.com 배열 안에 있는 수 중, 짝이 없는 애만 찾아서 리턴하면 된다. 처음에 시도한 방법 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 class Solution { public int solution(int[] A) { int answer = 0; for(int i = 0..
https://app.codility.com/programmers/lessons/1-iterations/binary_gap/ BinaryGap coding task - Learn to Code - Codility Find longest sequence of zeros in binary representation of an integer. app.codility.com 이진법 사이에 있는 0의 개수를 구하면 된다. 1001이면 2 1000이면 0 1000101이면 3 으로 리턴하면 된다. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 import java.util.ArrayList;..
https://programmers.co.kr/learn/courses/30/lessons/12899 알고리즘 연습 - 124 나라의 숫자 | 프로그래머스 124 나라가 있습니다. 124 나라에서는 10진법이 아닌 다음과 같은 자신들만의 규칙으로 수를 표현합니다. 124 나라에는 자연수만 존재합니다. 124 나라에는 모든 수를 표현할 때 1, 2, 4만 사용합니다. 예를 들어서 124 나라에서 사용하는 숫자는 다음과 같이 변환됩니다. 10진법 124 나라 10진법 124 나라 1 1 6 14 2 2 7 21 3 4 8 22 4 11 9 24 5 12 10 41 자연수 n이 매개변수로 주어질 때, n을 124 programmers.co.kr 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 ..
https://programmers.co.kr/learn/courses/30/lessons/42588 알고리즘 연습 - 탑 | 프로그래머스 수평 직선에 탑 N대를 세웠습니다. 모든 탑의 꼭대기에는 신호를 송/수신하는 장치를 설치했습니다. 발사한 신호는 신호를 보낸 탑보다 높은 탑에서만 수신합니다. 또한, 한 번 수신된 신호는 다른 탑으로 송신되지 않습니다. 예를 들어 높이가 6, 9, 5, 7, 4인 다섯 탑이 왼쪽으로 동시에 레이저 신호를 발사합니다. 그러면, 탑은 다음과 같이 신호를 주고받습니다. 높이가 4인 다섯 번째 탑에서 발사한 신호는 높이가 7인 네 번째 탑이 수신하고, 높이가 7 programmers.co.kr 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 ..
https://programmers.co.kr/learn/courses/30/lessons/49993 알고리즘 연습 - 스킬트리 | 프로그래머스 programmers.co.kr 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 import java.util.ArrayList; import java.util.Arrays; import java.util.List; class Solution { public int solution(String skill, String[] skill_trees) { int answer = 0; for(int i = 0; i
- Total
- Today
- Yesterday
- 카카오인턴
- java
- FrogJmp
- 자바
- 최솟값
- 객체지향과 디자인패턴
- 문자열 내 마음대로 정렬하기
- 완주하지 못한 선수
- cgv
- 안드로이드 스튜디오
- Spring
- codility
- 더 나은 내일
- 노션트렐로광고X
- 124 나라의 숫자
- 기능개발
- 맵 api
- 쇠막대기
- json
- 알고리즘
- 프로그래머스
- API
- 다음 맵 api
- K번째수
- AWS
- 파이팅코리아
- 스프링 부트
- 예매 알림
- 텔레그램
- 타겟 넘버
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |