전체 글
레노버 씽익 3세대 5개월 사용 후기
작년 10월에 g마켓 세일과 함께 레노버 씽크패트 3세대 모델을 구매하고 현재 5개월 정도 사용하고 나서 후기를 작성해볼려고 합니다. 저는 사자마자 불량이나서 레노버 서비스센터가서 대략 3~5일정도 뒤에 불량판정을 받고 새제품을 받은터라 레노버 as때문에 살지 말지 고민하시는 분들께도 도움을 드릴수 있을거 같아요 .ㅎ 노트북에 대한 이야기를 장점 단점순으로 말씀드리고 그다음 as 과정에 대해서 이야기하려고 합니다. 장점 1. 무게 무게가 성능 대비 가볍습니다. 아시겠지만 씽익은 프로세서 자체가 u같은 저전력이 아니라 h가 달려있는 모델인대 무게는 약 1.7kg 이라고 적혀 있습니다. 사고 나서 들어보니 무게 중심이 잘 잡혀 있는지 가벼웠습니다. ( 제가 이전에 2.5kg 노트북을 사용해서 그런가?... ..
코딜리티 - TapeEquilibrium 문제 (자바)
app.codility.com/programmers/lessons/3-time_complexity/ 3. Time Complexity lesson - Learn to Code - Codility Count minimal number of jumps from position X to Y. app.codility.com 앞에서 부터 더한 누적값 배열을 만들고 뒤에서 부터 더한 누적값 배열을 만들어서 두 배열의 일정 위치의 값을 빼고 절대값으로 하여 작은 값을 구함 // 코딜리티 - TapeEquilibrium 문제 class TapeEquilibrium { public int solution(int[] A) { // write your code in Java SE 8 int length = A.length;..
코딜리티 - PermMissingElem 문제 (자바)
app.codility.com/programmers/lessons/3-time_complexity/ 3. Time Complexity lesson - Learn to Code - Codility Count minimal number of jumps from position X to Y. app.codility.com 정렬 후 값을 인덱스와 인덱스 + 1을 비교한다. 만약 전부 같으면 N+1이 없는 것이므로 N + 1을 리턴한다. import java.util.Arrays; // 코딜리티 - PermMissingElem 문제 class PermMissingElem { public int solution(int[] A) { // write your code in Java SE 8 Arrays.sort(A);..
코딜리티 - FlogJump 문제 (자바)
app.codility.com/programmers/lessons/3-time_complexity/ 3. Time Complexity lesson - Learn to Code - Codility Count minimal number of jumps from position X to Y. app.codility.com 목적지인 Y에서 현재위치 X를 빼면 개구리가 가야하는거리가 나오고 이 거리를 개구리의 고정 이동 거리 D로 나누고 나머지가 있는경우 +1 해서 해결 // 코딜리티 - FlogJump 문제 class FlogJump { public int solution(int X, int Y, int D) { // write your code in Java SE 8 int distance = Y - X; i..
코딜리티 - OddOccurrencesInArray 문제 (자바)
app.codility.com/programmers/lessons/2-arrays/ 2. Arrays lesson - Learn to Code - Codility Rotate an array to the right by a given number of steps. app.codility.com 배열을 정렬하고 짝수번째 값을 더하고 홀수먼째 값은 빼면 결과가 나온다 예로 4 2 4 1 2 3 1 이런 배열을 정렬하면 1 1 2 2 3 4 4 이런 배열이 되고 result = result + 1 - 1 + 2 - 2 + 3 - 4 + 4; -> 3 리턴 import java.util.Arrays; // 코딜리티 - OddOccurrencesInArray 문제 class OddOccurrencesInArray..
코딜리티 - CyclicRotation 문제 (자바)
app.codility.com/programmers/lessons/2-arrays/ 2. Arrays lesson - Learn to Code - Codility Rotate an array to the right by a given number of steps. app.codility.com 만약 K가 4이고 배열의 크기도 K라면 다돌고난 뒤와 돌기전이 동일하다. K를 배열의 크기로 나눈 나머지만큼 이동하면된다. // 코딜리티 - CyclicRotation 문제 class CyclicRotation { public int[] solution(int[] A, int K) { // write your code in Java SE 8 int[] result = new int[A.length]; for(int..
코딜리티 - BinaryGap 문제 (자바)
app.codility.com/programmers/lessons/1-iterations/ 1. Iterations lesson - Learn to Code - Codility Find longest sequence of zeros in binary representation of an integer. app.codility.com 숫자를 2이진법 문자로 변경한 뒤 두번째 문자부터 0이면 세고 1이면 센값을 max와 비교하여 답을 구함. 2진법으로 변경하면 맨앞으로 숫자는 1이므로 그다음부터 체크한다. // 코딜리티 - BinaryGap 문제 class BinaryGap { public int solution(int N) { int result = 0; int count = 0; String str = ..
프로그래머스 - 카카오프렌즈 컬러링북 문제 (자바)
programmers.co.kr/learn/courses/30/lessons/1829 코딩테스트 연습 - 카카오프렌즈 컬러링북 6 4 [[1, 1, 1, 0], [1, 2, 2, 0], [1, 0, 0, 1], [0, 0, 0, 1], [0, 0, 0, 3], [0, 0, 0, 3]] [4, 5] programmers.co.kr dfs로 동일 색상을 방문해가면서 영역의 크기를 구하면 된다. 주의할점은 영역으 값이 0인 경우는 색상이 없는 경우로 배제 해야한다는 점이다. import java.util.LinkedList; import java.util.Queue; // 프로그래머스 카카오프렌즈 컬러링북 문제 class ColoringBook { static boolean[][] visited; static..