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

Done is better than perfect

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

Done is better than perfect

검색하기 폼
  • 분류 전체보기 (113)
    • 경제뉴스 (0)
    • IT (84)
      • Problem Solving (48)
      • Math (4)
      • Linux (1)
      • Rust (3)
      • C, C++ (10)
      • 자료구조, 알고리즘 (11)
      • Kafka (2)
      • Python (3)
    • 일상 (26)
      • 내돈내산 식당 (26)
    • 암호화폐 (3)
  • 방명록

Binary Tree Zigzag Level Order Traversal (1)
[C++] LeetCode : Binary Tree Zigzag Level Order Traversal

Question Given the root of a binary tree, return the zigzag level order traversal of its nodes' values. (i.e., from left to right, then right to left for the next level and alternate between). 이진트리의 root 가 주어졌을 때 지그재그로 노드의 값을 출력하는 함수를 작성하라. 제약사항 The number of nodes in the tree is in the range [0, 2000]. -100 left){ next_level.push(top->left); } if(top->right){ next_level.push(top->right); } }els..

IT/Problem Solving 2022. 8. 20. 23:17
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • 속초
  • Interview
  • 러스트
  • rust
  • 러스트 입문
  • 맛집
  • 인터뷰
  • 솔직후기
  • LeetCode
  • 트리
  • ProblemSolving
  • coding interview
  • 러스트 배우기
  • algorithm
  • 내돈내산
  • Problem Solving
  • 리트코드
  • PS
  • Medium
  • interview question
  • DP
  • C++
  • Tree
  • 자료구조
  • 기술면접
  • 반드시 알아야 할 자료구조
  • 코딩인터뷰
  • 알고리즘
  • 러스트 기초
  • 속초 맛집
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

티스토리툴바