level1 연습문제들

송지용·2019년 3월 31일
0

algorithm

목록 보기
7/50

생각보다 단순한 문제들이 많아서 일일이 풀어 쓰기가 비효율적일 것 같아 넘어가기로 결정..

가운데 글자 가져오기 (https://programmers.co.kr/learn/courses/30/lessons/12903)
https://github.com/songjy6565/alg-py/blob/master/programmers/level1/A6.py
https://github.com/songjy6565/alg-js/blob/master/programmers/level1/A6.js

같은 숫자는 싫어 (https://programmers.co.kr/learn/courses/30/lessons/12906)
https://github.com/songjy6565/alg-py/blob/master/programmers/level1/A7.py
https://github.com/songjy6565/alg-js/blob/master/programmers/level1/A7.js

나누어 떨어지는 숫자 배열 (https://programmers.co.kr/learn/courses/30/lessons/12910)
https://github.com/songjy6565/alg-py/blob/master/programmers/level1/A8.py
https://github.com/songjy6565/alg-js/blob/master/programmers/level1/A8.js

두 정수 사이의 합 (https://programmers.co.kr/learn/courses/30/lessons/12912)
https://github.com/songjy6565/alg-py/blob/master/programmers/level1/A9.py
https://github.com/songjy6565/alg-js/blob/master/programmers/level1/A9.js

문자열 내 마음대로 정렬하기 (https://programmers.co.kr/learn/courses/30/lessons/12915)
https://github.com/songjy6565/alg-py/blob/master/programmers/level1/A10.py
https://github.com/songjy6565/alg-js/blob/master/programmers/level1/A10.js

문자열 내 p와 y의 개수 (https://programmers.co.kr/learn/courses/30/lessons/12916)
https://github.com/songjy6565/alg-py/blob/master/programmers/level1/A11.py
https://github.com/songjy6565/alg-js/blob/master/programmers/level1/A11.js

문자열 내림차순으로 배치하기 (https://programmers.co.kr/learn/courses/30/lessons/12917)
https://github.com/songjy6565/alg-py/blob/master/programmers/level1/A12.py
https://github.com/songjy6565/alg-js/blob/master/programmers/level1/A12.js

문자열 다루기 기본 (https://programmers.co.kr/learn/courses/30/lessons/12918)
https://github.com/songjy6565/alg-py/blob/master/programmers/level1/A13.py
https://github.com/songjy6565/alg-js/blob/master/programmers/level1/A13.js

서울에서 김서방 찾기 (https://programmers.co.kr/learn/courses/30/lessons/12919)
https://github.com/songjy6565/alg-py/blob/master/programmers/level1/A14.py
https://github.com/songjy6565/alg-js/blob/master/programmers/level1/A14.js

소수 찾기 (https://programmers.co.kr/learn/courses/30/lessons/12921)
https://github.com/songjy6565/alg-py/blob/master/programmers/level1/A15.py
https://github.com/songjy6565/alg-js/blob/master/programmers/level1/A15.js

수박수박수박수박수박수? (https://programmers.co.kr/learn/courses/30/lessons/12922)
https://github.com/songjy6565/alg-py/blob/master/programmers/level1/A16.py
https://github.com/songjy6565/alg-js/blob/master/programmers/level1/A16.js

문자열을 정수로 바꾸기 (https://programmers.co.kr/learn/courses/30/lessons/12925)
https://github.com/songjy6565/alg-py/blob/master/programmers/level1/A17.py
https://github.com/songjy6565/alg-js/blob/master/programmers/level1/A17.js

시저 암호 (https://programmers.co.kr/learn/courses/30/lessons/12926)
https://github.com/songjy6565/alg-py/blob/master/programmers/level1/A18.py
https://github.com/songjy6565/alg-js/blob/master/programmers/level1/A18.js

약수의 합 (https://programmers.co.kr/learn/courses/30/lessons/12928)
https://github.com/songjy6565/alg-py/blob/master/programmers/level1/A19.py
https://github.com/songjy6565/alg-js/blob/master/programmers/level1/A19.js

이상한 문자 만들기 (https://programmers.co.kr/learn/courses/30/lessons/12930)
https://github.com/songjy6565/alg-py/blob/master/programmers/level1/A20.py
https://github.com/songjy6565/alg-js/blob/master/programmers/level1/A20.js

예산 (https://programmers.co.kr/learn/courses/30/lessons/12982)
https://github.com/songjy6565/alg-py/blob/master/programmers/level1/A21.py
https://github.com/songjy6565/alg-js/blob/master/programmers/level1/A21.js

  • 느낀 점
    소수의 합이 생각보다 효율성 테스트가 까다로웠음.. 그 외 나머지는 적당히 해도 통과가 되었고, 시간복잡도를 고민하는 문제라기 보다 같은 알고리즘이더라도 어떤 코드로 어떤 함수로 작성하는 지 차이가 있는 것 같음.. 이 부분에 대해서는 아직 미숙한 점이 많음. LEVEL2도 몇개 보았는데 건너 뛰기로 하고 다음은 LEVEL3부터 풀도록 하겠음.

0개의 댓글