recurtion

LeetCode

【LeetCode】 108. Convert Sorted Array to Binary Search Tree 解答・解説【Python】

問題 原文 Given an integer array nums where the elements are sorted in ascending order, convert it to a height-balanced ...
LeetCode

【LeetCode】 101. Symmetric Tree 解答・解説【Python】

問題 原文 Given the root of a binary tree, check whether it is a mirror of itself (i.e., symmetric around its center). ...
LeetCode

【LeetCode】 100. Same Tree 解答・解説【Python】

問題 原文 Given the roots of two binary trees p and q, write a function to check if they are the same or not. Two bin...