일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- baekjun
- 2909
- 트리
- HTML
- ubuntu
- 백준
- node.js
- raspberrypi
- CSS
- 13237
- springboot3.x
- 알고리즘
- NAV
- dp
- algotythm
- 라즈비안
- 크롤링
- nav-tab
- 16.04
- Algorythm
- MongoDB
- 라즈베리파이
- 2579
- 라즈베리파이3b+
- 라즈베리파이3
- 파이썬
- dynaminprogramming
- bootstrap
- Crawling
- Python
Archives
- Today
- Total
목록2023/09 (3)
노트
[백준] 2579번 계단 오르기 python
n=int(input()) s=[int(input()) for _ in range(n)] dp=[0]*n if len(s)
알고리즘
2023. 9. 22. 13:58
[백준] 1991번 트리 순회 python
n = int(input()) tree = {} for _ in range(n): root, left, right = input().split() tree[root] = [left,right] def preorder(a): if a is not '.': print(a,end='') preorder(tree[a][0]) preorder(tree[a][1]) def inorder(a): if a is not '.': inorder(tree[a][0]) print(a,end='') inorder(tree[a][1]) def postorder(a): if a is not '.': postorder(tree[a][0]) postorder(tree[a][1]) print(a,end='') preorder('A') ..
알고리즘
2023. 9. 12. 13:47