기타 47

[Easy] PassingCars

[문제] 동쪽으로 움직이는 차와 서쪽으로 움직이는 차에 대한 정보가 배열로 주어지고 도로에서 서로 지나치는 차의 쌍(pair)을 구하는 문제 https://app.codility.com/programmers/lessons/5-prefix_sums/passing_cars/ PassingCars coding task - Learn to Code - Codility Count the number of passing cars on the road. app.codility.com [코드] 풀이 : 배열 내 모든 수가 0과 1로 이루어져 있기에 전체 합을 구하고 배열 값이 0인 index 이후의 부분 배열의 합을 구하여 더하는 방식 시간복잡도 : O(N) # you can write to stdout for deb..

기타/Codility 2022.05.24

[Easy] FrogJmp

[문제] 현재 위치(X), 점프 거리(D), 목표지점(Y) 현재 위치로부터 목표지점에 도달/지나칠 때까지 몇번의 점프를 해야하는지 찾는 문제 FrogJmp coding task - Learn to Code - Codility Count minimal number of jumps from position X to Y. app.codility.com [코드] # you can write to stdout for debugging purposes, e.g. # print("this is a debug message") def solution(X, Y, D): # write your code in Python 3.6 count=Y-X if count==0: return 0 i = int(count/D) j = ..

기타/Codility 2022.05.22

[Easy] CyclicRotation

[문제] 주어진 수(K)만큼 1차원 배열을 회전하는 문제 [코드] # you can write to stdout for debugging purposes, e.g. # print("this is a debug message") def solution(A, K): # write your code in Python 3.6 lenth = len(A) if lenth==0 or K==0: return A K%=lenth answer=[0 for i in range(lenth)] for i in range(0, lenth) : answer[(i+K)%lenth] = A[i] return answer * 0에 대한 별도 처리 필요 https://app.codility.com/programmers/lessons/2-..

기타/Codility 2022.05.22

[Easy] ArrListLen

[문제] 배열 내 값을 배열 idx로 사용하여 접근하며 '-1'이 있는 배열 idx에 몇번만에 도달하는지 찾는 문제 [코드] # you can write to stdout for debugging purposes, e.g. # print("this is a debug message") def solution(A): # write your code in Python 3.6 answer=1 i=0 while True: if A[i] == -1: break; else: i = A[i] answer+=1 return answer # PassTheMessage is recommended https://app.codility.com/demo/results/trainingJVBNCC-F9V/ Test results ..

기타/Codility 2022.05.22

[Easy] BinaryGap

[문제] 2진수에 대해 1로 둘러싸인 연속된 0의 숫자를 세어 가장 큰 연속된 0의 개수를 출력하는 문제 [코드] # you can write to stdout for debugging purposes, e.g. # print("this is a debug message") def solution(N): # write your code in Python 3.6 binary = bin(N) start=0 cont=0 answer=0 for b in binary: if b=='1' and start==0: start=1 elif b=='0' and start==1: cont+=1 elif b=='1' and start==1: answer = max(answer, cont) cont=0 return answe..

기타/Codility 2022.05.22

AWS Solutions Architect - Associate 시험 자료 및 후기

이번 글에서는 AWS Solutions Architect - Associate(SAA-C01) 자격증 취득 후기와 자료들을 공유하고자 합니다. 주로 AWS 공식 문서(FAQ, 백서)를 활용했으며, Udemy 강좌와 연습문제로 공부를 했습니다. (덤프를 활용하지 않는 시간이 오래 걸리는 방법임을 미리 밝힙니다.) 1. 시험개요 AWS SAA 시험은 1000점 중 720점 이상을 획득하면 통과입니다. 시험 결과는 시험을 끝내고 설문을 마치자마자 알 수 있습니다. ('축하합니다'라는 문구가 보이면 합격입니다.) 자세한 시험 결과는 2-3일 후 메일로 안내가 오며, 저는 881점으로 다행히 통과를 했습니다. 시험은 한국어/영어 등 다양한 언어로 볼 수 있으며, 저는 한글로 시험을 응시했습니다. (한국어로 응시를..

기타/자격증 2019.10.23

AWS SAA 시험 관련 자료

AWS 시험 공식 가이드 (AWS 백서 및 FAQ, 샘플 문제 링크) AWS Certification 시험 준비 AWS 공인 고급 네트워킹 – 전문 분야 공식 시험 학습 안내서는 AWS 전문가가 작성합니다. 이 안내서는 시험 목표를 다루며, AWS 공인 고급 네트워킹 전문가로서 겪을 수 있는 상황을 토대로 실습할 수 있도록 하여 시험 환경에서 네트워킹 기술을 입증하도록 준비하는 데 도움이 됩니다. AWS를 사용한 클라우드 기반 솔루션 설계, 개발 및 배포에서 도구를 활용한 AWS 네트워킹 작업 자동화까지, 이 안내서는 AWS와 관련된 프로세스와 모범 사례를 습득하는 aws.amazon.com AWS SAA 시험 비공식 가이드 AWS Certified Solutions Architect Unofficial..

기타/자격증 2019.08.18
반응형