인생은 효율성

  • 홈
  • 태그
  • 방명록

Flatten Binary Tree to Linked List 1

[LeetCode] 114. Flatten Binary Tree to Linked List 2가지 방법으로 풀기(Recursion, Morris Traversal)

https://leetcode.com/problems/flatten-binary-tree-to-linked-list/ Flatten Binary Tree to Linked List - 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 root를 전위 순회하여 모든 노드를 오른쪽으로 배치하는 문제이다. 재귀로 푸는 방법과 morris traversal 알고리즘을 사용하는 방식 두 가지로 풀어보았다. [방법 1: recursion] 왼쪽과 오른쪽으로 나누어서 각 부분을..

알고리즘 2022.04.06
이전
1
다음
더보기
250x250
프로필사진
  • 분류 전체보기 (209)
    • 짧은만화 (15)
    • 토이프로젝트 (20)
    • JavaScript (26)
    • React (17)
    • 알고리즘 (91)
    • WEB (12)
    • 개발환경 (5)
    • 프로그래밍 (5)
    • 네트워크 (7)
    • MSSQL (6)
    • 기타 (2)

최근댓글

최근글과 인기글

  • 최근글
  • 인기글

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바