Depth First Tree

LeetCode

【LeetCode】112. Path Sum 解答・解説【Python】

はじめに LeetCodeの問題を解答します。 なるべく、問題の和訳と詳細なコメントを書いています。 余裕があれば、複数のアプローチの解答と、実際の面接を想定して英語での解法やコメントを書いています。 ...
LeetCode

【LeetCode】 110. Balanced Binary Tree 解答・解説【Python】

問題 原文 Given a binary tree, determine if it is height-balanced. Example 1: Input: root = Output: tr...