<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Tree on Cluas's blog</title><link>https://blog.cluas.eu.org/tags/tree/</link><description>Recent content in Tree on Cluas's blog</description><generator>Hugo -- gohugo.io</generator><language>zh-cn</language><lastBuildDate>Mon, 17 Aug 2020 18:35:24 +0800</lastBuildDate><atom:link href="https://blog.cluas.eu.org/tags/tree/index.xml" rel="self" type="application/rss+xml"/><item><title>Balanced Binary Tree</title><link>https://blog.cluas.eu.org/2020/balanced-binary-tree/</link><pubDate>Mon, 17 Aug 2020 18:35:24 +0800</pubDate><guid>https://blog.cluas.eu.org/2020/balanced-binary-tree/</guid><description>Description Given a binary tree, determine if it is height-balanced. For this problem, a height-balanced binary tree is defined as: a binary tree in which the left and right subtrees of every node differ in height by no more than 1. Example 1: Given the following tree [3,9,20,null,null,15,7]: 3 / \ 9 20 / \ 15 7 Return true. Example 2: Given the following tree [1,2,2,3,3,null,null,4,4]: 1 / \ 2</description></item></channel></rss>