Notice
Recent Posts
Recent Comments
Link
250x250
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- Algorithm
- BAEKJOON
- 안드로이드
- cos pro 1급
- Flutter
- AndroidStudio
- Vue
- vuejs
- DFS와BFS
- 백준
- android
- 알고리즘
- 안드로이드스튜디오
- 동적계획법
- 코테
- cos
- 동적계획법과최단거리역추적
- codingtest
- 코드품앗이
- C++
- 코딩테스트
- cos pro
- 파이썬
- 분할정복
- Python
- DFS
- issue
- 개발
- DART
- django
Archives
- Today
- Total
목록cos 스택으로 큐 만들기 python (1)
Development Artist
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/bMdDmN/btruFfVXFvl/piqVLHKilFIS2fpsf7kvK0/img.png)
문제 유형 빈칸 난이도 easy Note 1.func_a : stack에서 값을 꺼냄.(pop) func_b : stack1에서 pop해서 stack2에 넣는 함수. func_c : stack이 비었는지 체크하는 함수. Code # -*- coding: utf-8 -*- # UTF-8 encoding when using korean def func_a(stack): return stack.pop() def func_b(stack1, stack2): while not func_c(stack1): item = func_a(stack1) stack2.append(item) def func_c(stack): return (len(stack) == 0) def solution(stack1, stack2): if ..
Algorithm/COS
2022. 3. 1. 12:16