Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 스택
- dict
- 다이나믹 프로그래밍
- BFS
- MYSQL
- 딕셔너리
- 백준
- level0
- 힙
- 다익스트라
- 파이썬
- BOJ
- 수학
- level2
- 운영체제
- dfs
- 그리디
- 코딩테스트
- 가상메모리 관리
- programmers
- 프로그래머스
- level3
- 재귀
- DP
- python
- N과M
- 구현
- 브루트포스
- level1
- 가상메모리
Archives
- Today
- Total
목록문자열 밀기 (1)
동캄의 코딩도장
프로그래머스 level0 [문자열 밀기] 파이썬
https://school.programmers.co.kr/learn/courses/30/lessons/120921?language=python3 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr def solution(A, B): answer = 0 check=0 length= len(A) for i in range(length): if (A==B): check=1 break a=A[-1] A=A[:-1] A=a+A answer+=1 if check!=1: answer=-1 return answer 같지 않으면, 맨 끝 알파벳을 따로 저장하고, 맨 앞에 붙..
코테/프로그래머스 level0
2023. 3. 7. 14:33