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

마스터링

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

마스터링

검색하기 폼
  • 분류 전체보기 (60)
    • LANGUAGE (8)
      • go (2)
      • python (5)
    • DEV (16)
      • various knowledge (6)
      • Django (8)
      • nginx (1)
      • electron (1)
      • javascript (0)
    • OPS (1)
      • Docker (1)
    • ALGORITHM (24)
      • Programmers (12)
      • BOJ (3)
      • LeetCode (4)
    • 책리뷰 (4)
  • 방명록

dfs (1)
[leetcode] subtree-of-another-tree.py

https://leetcode.com/problems/subtree-of-another-tree/ Subtree of Another Tree - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com subRoot 노드가 root 노드의 subtree인지 확인하는 문제입니다. 노드의 val, left, right가 같은지 확인하면서 들어가야해서 두개의 재귀함수가 필요했습니다. None처리가 굉장히 복잡했던 문제.. dfs함수는 root함수를 dfs로 탐색하고, comp..

ALGORITHM/LeetCode 2022. 5. 28. 15:22
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • 소프트웨어 장인
  • for-else
  • leetcode
  • 팰린드롬수
  • 독후감
  • Python
  • 방금그곡
  • 의대 신경학 강의
  • print
  • Two Scoops of Django
  • django
  • 문자열 뒤집기
  • 파이썬
  • gunicorn
  • go context
  • query
  • conTeXt
  • 백준
  • ManyToMany
  • 프로그래머스
  • go
  • sql lite
  • taggit
  • dfs
  • stdout
more
«   2025/05   »
일 월 화 수 목 금 토
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

티스토리툴바