본문 바로가기 메뉴 바로가기

공작소

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

공작소

검색하기 폼
  • 분류 전체보기 (486)
    • BOJ (1)
    • (예전 글) (485)
      • PS (444)
      • Algorithm Tutorial (11)
      • etc. (3)
      • [완료] 2023-2 Tutoring (7)
      • [완료] 구름톤 챌린지 (20)
  • 방명록

2026/03/15 (1)
BOJ 2263번: 트리의 순회 (Python)

문제 링크 : https://www.acmicpc.net/problem/2263# 2263 : 트리의 순회import syssys.setrecursionlimit(int(1e5))input = sys.stdin.readlinen = int(input().rstrip())inorder = list(map(int, input().rstrip().split()))poorder = list(map(int, input().rstrip().split()))# 중위 순회가 주어지고# 후위 순회가 주어졌을 때# 전위 순회를 구해라.# 1. 요소를 하나씩 잡고, 그 요소가 다른 배열에 등장할 때까지를 구간으로 나누고,# [ 루트 ] - left - [ 루트 ] - left - [ 루트 ] 로 잡는다.# 2. 분할했..

BOJ 2026. 3. 15. 21:20
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • Greedy
  • number_theory
  • knapsack
  • lca
  • math
  • sparse_table
  • 백준
  • C++
  • ad_hoc
  • backtracking
  • Sort
  • implementation
  • PS
  • BFS
  • java
  • Prefix-Sum
  • Recursion
  • Python
  • Binary-Search
  • codeup
  • kmp
  • string
  • DP
  • bitmask
  • segment-tree
  • bruteforcing
  • C
  • lazy-propagation
  • BOJ
  • stack
more
«   2026/03   »
일 월 화 수 목 금 토
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 31
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바