BOJ 2583 영역 구하기


https://www.acmicpc.net/problem/2583


https://github.com/simjaemun2/BaekJoon/blob/6923d7f013f058c12428ce7e4884ce6b9e86ec0b/BOJ2583/BOJ2583.cpp


난이도 : M


DFS

'컴퓨터공학 > Program Solving' 카테고리의 다른 글

BOJ 10799 쇠막대기  (0) 2016.11.26
BOJ 11729 하노이 탑 이동 순서  (0) 2016.11.26
BOJ 2636 치즈  (0) 2016.11.22
BOJ 7569 토마토  (0) 2016.11.22
BOJ 7576 토마토  (0) 2016.11.21

BOJ 2667 단지번호붙이기


https://www.acmicpc.net/problem/2667


https://github.com/simjaemun2/BaekJoon/blob/7abcb386e2254bf130a4f192011c4879d9f1a414/BOJ2667/BOJ2667.cpp


분류 : DFS, BFS, 재귀


난이도 : M

'컴퓨터공학 > Program Solving' 카테고리의 다른 글

BOJ 2178 미로 탐색  (0) 2016.11.21
BOJ 2609 최대공약수와 최소공배수  (0) 2016.11.21
BOJ 2606 바이러스  (0) 2016.11.21
BOJ 2805 나무 자르기  (0) 2016.11.20
BOJ 1495 기타리스트  (0) 2016.11.20

BOJ 2606 바이러스


https://www.acmicpc.net/problem/2606


https://github.com/simjaemun2/BaekJoon/blob/083c02a7f2e35c435e083e55cb23aebf6b386cc9/BOJ2606/BOJ2606.cpp


분류 : DFS, BFS, 재귀


난이도 : M

'컴퓨터공학 > Program Solving' 카테고리의 다른 글

BOJ 2609 최대공약수와 최소공배수  (0) 2016.11.21
BOJ 2667 단지번호붙이기  (0) 2016.11.21
BOJ 2805 나무 자르기  (0) 2016.11.20
BOJ 1495 기타리스트  (0) 2016.11.20
BOJ 1670 정상 회담 2  (0) 2016.11.19

https://www.acmicpc.net/problem/9466

난이도 : MH



https://www.acmicpc.net/problem/10451

난이도 : MH



https://github.com/simjaemun2/BaekJoon/blob/master/BOJ9466/BOJ9466.cpp

https://github.com/simjaemun2/BaekJoon/blob/master/BOJ10451/BOJ10451.cpp



DFS

Graph Cycle 검출

'컴퓨터공학 > Program Solving' 카테고리의 다른 글

2016 10 01  (0) 2016.10.01
BOJ 2980 도로와 신호등  (0) 2016.09.25
[Leetcode] 160323  (0) 2016.03.23
[Leetcode]160322  (0) 2016.03.23
[Leetcode] 160309  (0) 2016.03.09

[Symmetric Tree]

https://leetcode.com/problems/symmetric-tree/

DFS



[Minimum Depth of Binary Tree]

https://leetcode.com/problems/minimum-depth-of-binary-tree/


DFS로 구현, BFS로도 구현 가능



[Excel Sheet Column Number]

https://leetcode.com/problems/excel-sheet-column-number/


math

'컴퓨터공학 > Program Solving' 카테고리의 다른 글

[Leetcode] 160302  (0) 2016.03.02
[Leetcode] 160301  (0) 2016.03.02
[leetcode] 160229  (0) 2016.02.29
[leetcode]160225  (0) 2016.02.25
[leetcode.com] 160223  (0) 2016.02.23

[Palindrome Partitioning]

https://leetcode.com/problems/palindrome-partitioning/


def dfs(sublist, str)

if not str

ret += sublist

else

for str의 0번 인덱스 시작 길이가 1부터 len(str)까지의 모든 substring

if substring is palindrome

dfs(sublist += substring, str에서 substring을 제외한 나머지)



[Binary Tree Preorder, Inorder, Postorder]


https://leetcode.com/problems/binary-tree-preorder-traversal/

https://leetcode.com/problems/binary-tree-inorder-traversal/

https://leetcode.com/problems/binary-tree-postorder-traversal/


stack, hash

reverse(preorder) = postorder

'컴퓨터공학 > Program Solving' 카테고리의 다른 글

[Leetcode] 160302  (0) 2016.03.02
[Leetcode] 160301  (0) 2016.03.02
[leetcode] 160229  (0) 2016.02.29
[leetcode]160225  (0) 2016.02.25
[leetcode.com] 160224  (0) 2016.02.24

+ Recent posts