[飘飞的心灵] - 2019-06-21 LeetCode - 100 - 相同的树(same-tree).html
                    <!DOCTYPE html>
<head>
	<meta http-equiv='Content-Type' content='text/html;charset=utf-8'>
	<meta name='viewport' content='width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no'>
	<title>
		LeetCode - 100 - 相同的树(same-tree)
	</title>
	<script src='https://cdn.bootcss.com/jquery/1.10.2/jquery.min.js'>
	</script>
	<style>
		a {color: #607fa6;text-decoration:none;word-wrap:break-word;word-break:break-all;}.rich_media_title{padding-bottom:10px;margin-bottom:14px;border-bottom:1px solid #e7e7eb;font-weight:400;} .rich_media_meta_list{font-size:14px;margin-bottom: 22px;}
		.rich_media_meta{display:inline-block;vertical-align:middle;margin-right:8px;margin-bottom:10px;font-size:14px;}.rich_media_meta_text{color:#8c8c8c;color:rgba(0, 0, 0, 0.3)}.rich_media_meta_list
		em {font-style: normal;}@media screen and (max-width:768px){.rich_media{position:
		relative;padding: 20px 15px 15px;background-color: #fff;}}.rich_media_content{text-align:justify;} .rich_media_content * {max-width:100%!important;box-sizing: border-box!important;-webkit-box-sizing:
		border-box!important;word-wrap: break-word!important;}.rich_media_content
		blockquote {margin: 0;padding-left: 10px;border-left: 3px solid #dbdbdb;}.rich_media_content
		.list-paddingleft-2 {padding-left: 2.2em;}a.rich_media_meta_nickname{display: none;}@media screen and (min-width:1025px){.rich_media{position:relative;}a.rich_media_meta_nickname{display:inline-block!important;}span.rich_media_meta_nickname
		{display: inline-block!important;}.rich_media {width:677px;margin-left:auto;margin-right:auto;}}a.fwjm{font-size: 12px;color: #ececec;}.tenvideo_player {position: relative;width:
		100 %;height: 100 %;margin: auto;background: #000;}* {margin:0px;padding:0px;} body{line-height: 1.6;letter-spacing: .034em;}
		.dy_all {text-align: center;margin: 30px 0;} .dy_all a {display: inline-block;height:
		38px;line-height: 38px;padding: 0 18px;background-color: #009688;color:
		#fff;white-space: nowrap;font-size: 14px;border: none;border-radius: 2px;cursor:
		pointer;text-align: center;outline: 0;-webkit-appearance: none;transition:
		all .3s;-webkit-transition: all .3s;box-sizing: border-box;} img{max-width: 677px!important;}

		.crawler-info{padding: 8px 0;} .article-link>img{margin-left: 20px;width: 16px;}
		.comment-item::before,.comment-item::after{content:'';display:block;height:0;visibility:hidden;clear:both;*zoom:1;} .comment-item{margin-bottom:30px;}
		.avatar{width:12%; padding-right:10px;float:left;box-sizing:border-box;} .avatar img{width:100%;}
		.comment-body{float:left;width:88%;} .comment-body .comment-info{color:#b3b3b3;margin-bottom:4px;margin-top: -5px;} .comment-body .comment-info>span:last-child{float:right;} 
		.comment-author{border-left:4px solid green;padding-left:6px;margin:8px 0;}

		@media screen and (max-width: 420px) {.article-link>img {margin-left: 0px;}}
		@media screen and (min-width: 480px) {.avatar {width: 9%;}.comment-body {width: 91%;}}
	</style>
</head>
<body>
	<div id='js_article' class='rich_media'>
		<div class="crawler-info">
			<a href='https://www.52pojie.cn' class='fwjm' target='_blank'>
				提供的爬取软件来源于:52pojie.cn@夜泉 免费下载使用
			</a>
			<a href='https://mp.weixin.qq.com/s?__biz=MzIwOTQxMjU1NQ==&amp;mid=2247483855&amp;idx=1&amp;sn=48a550b641abbbafd0314ad694bb8713&amp;chksm=9775096ba002807d8775384189ebe7ea4e0fae98a6fe1544e393eed946b858b2367278e03ff3&amp;scene=27#wechat_redirect' target='_blank' class="article-link">
				<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAQCAMAAABA3o1rAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xN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6gbwAAACNSURBVHjajJHpEoIwDISDVMotcnuCmLz/K9KCdlqO6v7p7Mw3yW4KxG85fnUkIVfZ5J0SsCtqcgRw0HzjQYY2AAOIdRuaK4ReAPJ5nmglL5qICahpU60C0uXguQ9TgIwGJoDnT9z/ABmxt60ot0N2CsDLfb9mvBxs9ql+n5o9bEDBgbif7/1F4g80CjAAqrVAnnsm5f8AAAAASUVORK5CYII=" />
			</a>
		</div>
		<div id="img-content">
                
                <h2 class="rich_media_title" id="activity-name">LeetCode - 100 - 相同的树(same-tree)</h2>
                <div id="meta_content" class="rich_media_meta_list">
                                                            <span id="copyright_logo" class="rich_media_meta rich_media_meta_text meta_tag_text">原创:</span>
                                                                                            <span class="rich_media_meta rich_media_meta_text">
                                                                                                            <span id="js_author_name" class="rich_media_meta_link" datarewardsn="" datatimestamp="" datacanreward="0">jsliang</span>
                                                                                                </span>
                                                                
                                                                                                            <span class="rich_media_meta rich_media_meta_nickname" id="profileBt"><a href="javascript:void(0);">飘飞的心灵</a>
                      <div id="js_profile_qrcode" class="profile_container" style="display:none;">
                          <div class="profile_inner">
                              <strong class="profile_nickname">飘飞的心灵</strong>
                              <img class="profile_avatar" id="js_profile_qrcode_img" src="" alt="">

                              <p class="profile_meta">
                              <label class="profile_meta_label">微信号</label>
                              <span class="profile_meta_value"></span>
                              </p>

                              <p class="profile_meta">
                              <label class="profile_meta_label">功能介绍</label>
                              <span class="profile_meta_value">不折腾的前端,和咸鱼有什么区别。 折腾过度的程序员,无法享受生活。 愿世间被千丝万缕情绪困扰的心灵飘飞。</span>
                              </p>
                              
                          </div>
                          <span class="profile_arrow_wrp" id="js_profile_arrow_wrp">
                              <i class="profile_arrow arrow_out"></i>
                              <i class="profile_arrow arrow_in"></i>
                          </span>
                      </div>
                    </span>


                    <em id="publish_time" class="rich_media_meta rich_media_meta_text">2019-06-21</em>





                </div>

                

                

                

                
                                


                
                
                
                
                                                
                                                                
                                
                
                <div class="rich_media_content " id="js_content">
                    

                    

                    
                    
                    <blockquote style="box-sizing: border-box;margin-bottom: 1.2em;padding: 15px 15px 15px 1rem;color: rgb(129, 145, 152);border-left-width: 6px;border-left-color: rgb(220, 230, 240);font-size: 14px;line-height: 22px;background: rgb(242, 247, 251);font-family: Avenir, -apple-system-font, 微软雅黑, sans-serif;text-align: start;white-space: normal;"><p style="box-sizing: border-box;white-space: pre-line;line-height: 30px;color: rgb(74, 74, 74);">Create by <strong style="box-sizing: border-box;color: rgb(0, 0, 0);">jsliang</strong> on <strong style="box-sizing: border-box;color: rgb(0, 0, 0);">2019-6-13 07:36:52</strong><br style="box-sizing: border-box;"  />Recently revised in <strong style="box-sizing: border-box;color: rgb(0, 0, 0);">2019-6-13 08:56:03</strong></p></blockquote><h2 style="box-sizing: border-box;margin-top: 1.5rem;margin-bottom: 1rem;color: rgb(21, 153, 87);line-height: 1.35;font-size: 24px;text-align: start;white-space: normal;font-family: Menlo, Monaco, &quot;Source Code Pro&quot;, Consolas, Inconsolata, &quot;Ubuntu Mono&quot;, &quot;DejaVu Sans Mono&quot;, &quot;Courier New&quot;, &quot;Droid Sans Mono&quot;, &quot;Hiragino Sans GB&quot;, 微软雅黑, monospace !important;">一 目录</h2><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 30px;color: rgb(74, 74, 74);font-family: Avenir, -apple-system-font, 微软雅黑, sans-serif;text-align: start;"><strong style="box-sizing: border-box;color: rgb(0, 0, 0);">不折腾的前端,和咸鱼有什么区别</strong></p><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 30px;color: rgb(74, 74, 74);font-family: Avenir, -apple-system-font, 微软雅黑, sans-serif;text-align: start;">| 目录 |
| --- | 
| 一 目录 | 
| 二 前言 |
| 三 解题 - 二叉树 |
| 四 执行测试 |
| 五 LeetCode Submit |
| 六 解题思路 |
| 七 进一步思考 |</p><h2 style="box-sizing: border-box;margin-top: 1.5rem;margin-bottom: 1rem;color: rgb(21, 153, 87);line-height: 1.35;font-size: 24px;text-align: start;white-space: normal;font-family: Menlo, Monaco, &quot;Source Code Pro&quot;, Consolas, Inconsolata, &quot;Ubuntu Mono&quot;, &quot;DejaVu Sans Mono&quot;, &quot;Courier New&quot;, &quot;Droid Sans Mono&quot;, &quot;Hiragino Sans GB&quot;, 微软雅黑, monospace !important;">二 前言</h2><ul style="list-style-type: square;" class=" list-paddingleft-2"><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);line-height: 22px;font-size: 14px !important;"><span style="box-sizing: border-box;line-height: 22px;"><strong style="box-sizing: border-box;color: rgb(0, 0, 0);">难度</strong>:简单</span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);line-height: 22px;font-size: 14px !important;"><span style="box-sizing: border-box;line-height: 22px;"><strong style="box-sizing: border-box;color: rgb(0, 0, 0);">涉及知识</strong>:树、深度优先搜索</span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);line-height: 22px;font-size: 14px !important;"><span style="box-sizing: border-box;line-height: 22px;"><strong style="box-sizing: border-box;color: rgb(0, 0, 0);">题目地址</strong>:https://leetcode-cn.com/problems/same-tree/</span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);line-height: 22px;font-size: 14px !important;"><span style="box-sizing: border-box;line-height: 22px;"><strong style="box-sizing: border-box;color: rgb(0, 0, 0);">题目内容</strong>:</span></span></p></li></ul><pre class="prettyprint linenums prettyprinted" style="box-sizing: border-box;padding-top: 8px;padding-bottom: 6px;background: rgb(254, 251, 236);border-radius: 0px;overflow-y: auto;color: rgb(80, 97, 109);text-align: start;font-size: 10px;line-height: 12px;font-family: consolas, menlo, courier, monospace, &quot;Microsoft Yahei&quot;!important;border-width: 1px !important;border-style: solid !important;border-color: rgb(226, 226, 226) !important;"><ol class="linenums list-paddingleft-2" style="list-style-type: none;"><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">给定两个二叉树,编写一个函数来检验它们是否相同。</span></code></span></span></p></li><li><p><br  /></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">如果两个树在结构上相同,并且节点具有相同的值,则认为它们是相同的。</span></code></span></span></p></li><li><p><br  /></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">示例</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">&nbsp;</span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">1</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">输入:</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">       </span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">1</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">         </span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">1</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">          </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">/</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> \       </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">/</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> \</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">         </span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">2</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">   </span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">3</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">     </span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">2</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">   </span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">3</span></code></span></span></p></li><li><p><br  /></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">        </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">[</span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">1</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">2</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">3</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">],</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">   </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">[</span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">1</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">2</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">3</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">]</span></code></span></span></p></li><li><p><br  /></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">输出:</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">true</span></code></span></span></p></li><li><p><br  /></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">示例</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">2</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">输入:</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">      </span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">1</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">          </span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">1</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">          </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">/</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">           \</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">         </span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">2</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">             </span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">2</span></code></span></span></p></li><li><p><br  /></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">        </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">[</span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">1</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">2</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">],</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">     </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">[</span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">1</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">null</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">2</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">]</span></code></span></span></p></li><li><p><br  /></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">输出:</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">false</span></code></span></span></p></li><li><p><br  /></p></li><li><p><br  /></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">示例</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">&nbsp;</span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">3</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">输入:</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">       </span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">1</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">         </span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">1</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">          </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">/</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> \       </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">/</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> \</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">         </span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">2</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">   </span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">1</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">     </span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">1</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">   </span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">2</span></code></span></span></p></li><li><p><br  /></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">        </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">[</span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">1</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">2</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">1</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">],</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">   </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">[</span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">1</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">1</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">2</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">]</span></code></span></span></p></li><li><p><br  /></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">输出:</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">false</span></code></span></span></p></li></ol></pre><h2 style="box-sizing: border-box;margin-top: 1.5rem;margin-bottom: 1rem;color: rgb(21, 153, 87);line-height: 1.35;font-size: 24px;text-align: start;white-space: normal;font-family: Menlo, Monaco, &quot;Source Code Pro&quot;, Consolas, Inconsolata, &quot;Ubuntu Mono&quot;, &quot;DejaVu Sans Mono&quot;, &quot;Courier New&quot;, &quot;Droid Sans Mono&quot;, &quot;Hiragino Sans GB&quot;, 微软雅黑, monospace !important;">三 解题 - 二叉树</h2><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 30px;color: rgb(74, 74, 74);font-family: Avenir, -apple-system-font, 微软雅黑, sans-serif;text-align: start;">小伙伴可以先自己在本地尝试解题,再回来看看 <strong style="box-sizing: border-box;color: rgb(0, 0, 0);">jsliang</strong> 的解题思路。</p><pre class="prettyprint linenums prettyprinted" style="box-sizing: border-box;padding-top: 8px;padding-bottom: 6px;background: rgb(254, 251, 236);border-radius: 0px;overflow-y: auto;color: rgb(80, 97, 109);text-align: start;font-size: 10px;line-height: 12px;font-family: consolas, menlo, courier, monospace, &quot;Microsoft Yahei&quot;!important;border-width: 1px !important;border-style: solid !important;border-color: rgb(226, 226, 226) !important;"><ol class="linenums list-paddingleft-2" style="list-style-type: none;"><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">var</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> isSameTree </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">function</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">p</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> q</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">)</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  let serialize </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">function</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">root</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">)</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    </span><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">if</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(!</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">root</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">)</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">      </span><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">return</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="str" style="box-sizing: border-box;color: rgb(96, 172, 57);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'#!'</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">;</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">}</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    </span><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">return</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">`</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">$</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">root</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">val</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">}!</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">$</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">serialize</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">root</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">left</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">)}</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">$</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">serialize</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">root</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">right</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">)}`;</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">};</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  </span><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">return</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> serialize</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">p</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">)</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">===</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> serialize</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">q</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">);</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">};</span></code></span></span></p></li></ol></pre><h2 style="box-sizing: border-box;margin-top: 1.5rem;margin-bottom: 1rem;color: rgb(21, 153, 87);line-height: 1.35;font-size: 24px;text-align: start;white-space: normal;font-family: Menlo, Monaco, &quot;Source Code Pro&quot;, Consolas, Inconsolata, &quot;Ubuntu Mono&quot;, &quot;DejaVu Sans Mono&quot;, &quot;Courier New&quot;, &quot;Droid Sans Mono&quot;, &quot;Hiragino Sans GB&quot;, 微软雅黑, monospace !important;">四 执行测试</h2><ul style="list-style-type: square;" class=" list-paddingleft-2"><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);line-height: 22px;font-size: 14px !important;"><span style="box-sizing: border-box;line-height: 22px;">参数&nbsp;<code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);font-size: 16px;line-height: 18px;font-family: consolas, menlo, courier, monospace, &quot;Microsoft Yahei&quot;!important;border-width: 0px !important;border-style: initial !important;border-color: initial !important;"><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;line-height: 22px;font-size: 14px !important;">p</span></code>、&nbsp;<code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);font-size: 16px;line-height: 18px;font-family: consolas, menlo, courier, monospace, &quot;Microsoft Yahei&quot;!important;border-width: 0px !important;border-style: initial !important;border-color: initial !important;"><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;line-height: 22px;font-size: 14px !important;">q</span></code>:</span></span></p></li></ul><pre class="prettyprint linenums prettyprinted" style="box-sizing: border-box;padding-top: 8px;padding-bottom: 6px;background: rgb(254, 251, 236);border-radius: 0px;overflow-y: auto;color: rgb(80, 97, 109);text-align: start;font-size: 10px;line-height: 12px;font-family: consolas, menlo, courier, monospace, &quot;Microsoft Yahei&quot;!important;border-width: 1px !important;border-style: solid !important;border-color: rgb(226, 226, 226) !important;"><ol class="linenums list-paddingleft-2" style="list-style-type: none;"><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">var</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> p </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  val</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">1</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  left</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    val</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">2</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    left</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">null</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    right</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">null</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">},</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  right</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    val</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">1</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    left</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">null</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    right</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">null</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">},</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">}</span></code></span></span></p></li><li><p><br  /></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">var</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> q </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  val</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">1</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  left</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    val</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">1</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    left</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">null</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    right</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">null</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">},</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  right</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    val</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">2</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    left</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">null</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    right</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">null</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">},</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">}</span></code></span></span></p></li></ol></pre><ul style="list-style-type: square;" class=" list-paddingleft-2"><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);line-height: 22px;font-size: 14px !important;"><span style="box-sizing: border-box;line-height: 22px;">返回值&nbsp;<code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);font-size: 16px;line-height: 18px;font-family: consolas, menlo, courier, monospace, &quot;Microsoft Yahei&quot;!important;border-width: 0px !important;border-style: initial !important;border-color: initial !important;"><span class="kwd" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;line-height: 22px;font-size: 14px !important;">return</span></code>:</span></span></p></li></ul><pre class="prettyprint linenums prettyprinted" style="box-sizing: border-box;padding-top: 8px;padding-bottom: 6px;background: rgb(254, 251, 236);border-radius: 0px;overflow-y: auto;color: rgb(80, 97, 109);text-align: start;font-size: 10px;line-height: 12px;font-family: consolas, menlo, courier, monospace, &quot;Microsoft Yahei&quot;!important;border-width: 1px !important;border-style: solid !important;border-color: rgb(226, 226, 226) !important;"><ol class="linenums list-paddingleft-2" style="list-style-type: none;"><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">false</span></code></span></span></p></li></ol></pre><h2 style="box-sizing: border-box;margin-top: 1.5rem;margin-bottom: 1rem;color: rgb(21, 153, 87);line-height: 1.35;font-size: 24px;text-align: start;white-space: normal;font-family: Menlo, Monaco, &quot;Source Code Pro&quot;, Consolas, Inconsolata, &quot;Ubuntu Mono&quot;, &quot;DejaVu Sans Mono&quot;, &quot;Courier New&quot;, &quot;Droid Sans Mono&quot;, &quot;Hiragino Sans GB&quot;, 微软雅黑, monospace !important;">五 LeetCode Submit</h2><pre class="prettyprint linenums prettyprinted" style="box-sizing: border-box;padding-top: 8px;padding-bottom: 6px;background: rgb(254, 251, 236);border-radius: 0px;overflow-y: auto;color: rgb(80, 97, 109);text-align: start;font-size: 10px;line-height: 12px;font-family: consolas, menlo, courier, monospace, &quot;Microsoft Yahei&quot;!important;border-width: 1px !important;border-style: solid !important;border-color: rgb(226, 226, 226) !important;"><ol class="linenums list-paddingleft-2" style="list-style-type: none;"><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">√</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="typ" style="box-sizing: border-box;color: rgb(102, 132, 225);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">Accepted</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">√</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">57</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">/</span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">57</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> cases passed </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">76</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> ms</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">)</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">√</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="typ" style="box-sizing: border-box;color: rgb(102, 132, 225);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">Your</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> runtime beats </span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">91.4</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">%</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> of javascript submissions</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">√</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="typ" style="box-sizing: border-box;color: rgb(102, 132, 225);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">Your</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> memory usage beats </span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">23.48</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">%</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> of javascript submissions </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">33.7</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> MB</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">)</span></code></span></span></p></li></ol></pre><h2 style="box-sizing: border-box;margin-top: 1.5rem;margin-bottom: 1rem;color: rgb(21, 153, 87);line-height: 1.35;font-size: 24px;text-align: start;white-space: normal;font-family: Menlo, Monaco, &quot;Source Code Pro&quot;, Consolas, Inconsolata, &quot;Ubuntu Mono&quot;, &quot;DejaVu Sans Mono&quot;, &quot;Courier New&quot;, &quot;Droid Sans Mono&quot;, &quot;Hiragino Sans GB&quot;, 微软雅黑, monospace !important;">六 解题思路</h2><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 30px;color: rgb(74, 74, 74);font-family: Avenir, -apple-system-font, 微软雅黑, sans-serif;text-align: start;"><strong style="box-sizing: border-box;color: rgb(0, 0, 0);">首先</strong>,<strong style="box-sizing: border-box;color: rgb(0, 0, 0);">jsliang</strong> 和小伙伴们一样,都是首次接触二叉树,未免有点懵逼。</p><blockquote style="box-sizing: border-box;margin-bottom: 1.2em;padding: 15px 15px 15px 1rem;color: rgb(129, 145, 152);border-left-width: 6px;border-left-color: rgb(220, 230, 240);font-size: 14px;line-height: 22px;background: rgb(242, 247, 251);font-family: Avenir, -apple-system-font, 微软雅黑, sans-serif;text-align: start;white-space: normal;"><p style="box-sizing: border-box;white-space: pre-line;line-height: 30px;color: rgb(74, 74, 74);">前端大佬除外,懂二叉树的除外~</p></blockquote><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 30px;color: rgb(74, 74, 74);font-family: Avenir, -apple-system-font, 微软雅黑, sans-serif;text-align: start;"><strong style="box-sizing: border-box;color: rgb(0, 0, 0);">然后</strong>,<strong style="box-sizing: border-box;color: rgb(0, 0, 0);">jsliang</strong> 进行了下打印,查看下为何如此解题:</p><pre class="prettyprint linenums prettyprinted" style="box-sizing: border-box;padding-top: 8px;padding-bottom: 6px;background: rgb(254, 251, 236);border-radius: 0px;overflow-y: auto;color: rgb(80, 97, 109);text-align: start;font-size: 10px;line-height: 12px;font-family: consolas, menlo, courier, monospace, &quot;Microsoft Yahei&quot;!important;border-width: 1px !important;border-style: solid !important;border-color: rgb(226, 226, 226) !important;"><ol class="linenums list-paddingleft-2" style="list-style-type: none;"><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">var</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> isSameTree </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">function</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">p</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> q</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">)</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  console</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">log</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="str" style="box-sizing: border-box;color: rgb(96, 172, 57);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'------\n原树:'</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">);</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  console</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">log</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">p</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">);</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  console</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">log</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">q</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">);</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  let serialize </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">function</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">root</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">)</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    </span><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">if</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(!</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">root</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">)</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">      </span><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">return</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="str" style="box-sizing: border-box;color: rgb(96, 172, 57);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'#!'</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">;</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">}</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    </span><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">return</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">`</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">$</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">root</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">val</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">}!</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">$</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">serialize</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">root</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">left</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">)}</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">$</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">serialize</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">root</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">right</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">)}`;</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">};</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  console</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">log</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="str" style="box-sizing: border-box;color: rgb(96, 172, 57);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'------\n现字符串:'</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">);</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  console</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">log</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">serialize</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">p</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">));</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  console</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">log</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">serialize</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">q</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">));</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  </span><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">return</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> serialize</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">p</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">)</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">===</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> serialize</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">q</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">);</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">};</span></code></span></span></p></li></ol></pre><pre class="prettyprint linenums prettyprinted" style="box-sizing: border-box;padding-top: 8px;padding-bottom: 6px;background: rgb(254, 251, 236);border-radius: 0px;overflow-y: auto;color: rgb(80, 97, 109);text-align: start;font-size: 10px;line-height: 12px;font-family: consolas, menlo, courier, monospace, &quot;Microsoft Yahei&quot;!important;border-width: 1px !important;border-style: solid !important;border-color: rgb(226, 226, 226) !important;"><ol class="linenums list-paddingleft-2" style="list-style-type: none;"><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">------</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">原树:</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> val</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">1</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  left</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> val</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">2</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> left</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">null</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> right</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">null</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">},</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  right</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> val</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">1</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> left</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">null</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> right</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">null</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">}</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">}</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> val</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">1</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  left</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> val</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">1</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> left</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">null</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> right</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">null</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">},</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  right</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> val</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">2</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> left</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">null</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> right</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">null</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">}</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">}</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">------</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">现字符串:</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">1</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">!</span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">2</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">!#!#!</span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">1</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">!#!#!</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">1</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">!</span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">1</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">!#!#!</span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">2</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">!#!#!</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">false</span></code></span></span></p></li></ol></pre><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 30px;color: rgb(74, 74, 74);font-family: Avenir, -apple-system-font, 微软雅黑, sans-serif;text-align: start;"><strong style="box-sizing: border-box;color: rgb(0, 0, 0);">最后</strong>,看到这里,<strong style="box-sizing: border-box;color: rgb(0, 0, 0);">jsliang</strong> 感觉自己思路打开了大门,好像,二叉树的比较并不复杂嘛!(当然,仅限于比较,哈哈)</p><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 30px;color: rgb(74, 74, 74);font-family: Avenir, -apple-system-font, 微软雅黑, sans-serif;text-align: start;">可以看到的是,我们通过递归,让树节点不断前行,就好比递归到 <code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);line-height: 18px;font-family: consolas, menlo, courier, monospace, &quot;Microsoft Yahei&quot;!important;border-width: 0px !important;border-style: initial !important;border-color: initial !important;"><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">p</span></code> 的最后一个节点 <code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);line-height: 18px;font-family: consolas, menlo, courier, monospace, &quot;Microsoft Yahei&quot;!important;border-width: 0px !important;border-style: initial !important;border-color: initial !important;"><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">right</span><span class="pun" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">:</span><span class="pun" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">{</span><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">val</span><span class="pun" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">:</span><span class="lit" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">1</span><span class="pun" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">,</span><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">left</span><span class="pun" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">:</span><span class="kwd" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">null</span><span class="pun" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">,</span><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">right</span><span class="pun" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">:</span><span class="kwd" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">null</span><span class="pun" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">}</span></code>,这时候,我们通过</p><pre class="prettyprint linenums prettyprinted" style="box-sizing: border-box;padding-top: 8px;padding-bottom: 6px;background: rgb(254, 251, 236);border-radius: 0px;overflow-y: auto;color: rgb(80, 97, 109);text-align: start;font-size: 10px;line-height: 12px;font-family: consolas, menlo, courier, monospace, &quot;Microsoft Yahei&quot;!important;border-width: 1px !important;border-style: solid !important;border-color: rgb(226, 226, 226) !important;"><ol class="linenums list-paddingleft-2" style="list-style-type: none;"><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">let serialize </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">function</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">root</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">)</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  </span><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">if</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(!</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">root</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">)</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    </span><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">return</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="str" style="box-sizing: border-box;color: rgb(96, 172, 57);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'#!'</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">;</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">}</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  </span><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">return</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">`</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">$</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">root</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">val</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">}!</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">$</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">serialize</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">root</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">left</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">)}</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">$</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">serialize</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">root</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">right</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">)}`;</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">};</span></code></span></span></p></li></ol></pre><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 30px;color: rgb(74, 74, 74);font-family: Avenir, -apple-system-font, 微软雅黑, sans-serif;text-align: start;">来判断一个节点,是否还有子节点,到这最后一个节点的时候,因为 <code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);line-height: 18px;font-family: consolas, menlo, courier, monospace, &quot;Microsoft Yahei&quot;!important;border-width: 0px !important;border-style: initial !important;border-color: initial !important;"><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">root</span><span class="pun" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">.</span><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">left</span></code> 和 <code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);line-height: 18px;font-family: consolas, menlo, courier, monospace, &quot;Microsoft Yahei&quot;!important;border-width: 0px !important;border-style: initial !important;border-color: initial !important;"><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">root</span><span class="pun" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">.</span><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">right</span></code> 都是 <code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);line-height: 18px;font-family: consolas, menlo, courier, monospace, &quot;Microsoft Yahei&quot;!important;border-width: 0px !important;border-style: initial !important;border-color: initial !important;"><span class="kwd" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">null</span></code>,所以触发 <code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);line-height: 18px;font-family: consolas, menlo, courier, monospace, &quot;Microsoft Yahei&quot;!important;border-width: 0px !important;border-style: initial !important;border-color: initial !important;"><span class="kwd" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">if</span><span class="pun" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">(!</span><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">root</span><span class="pun" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">)</span><span class="pun" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">{</span><span class="pun" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">...</span><span class="pun" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">}</span></code> 的条件,返回 <code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);line-height: 18px;font-family: consolas, menlo, courier, monospace, &quot;Microsoft Yahei&quot;!important;border-width: 0px !important;border-style: initial !important;border-color: initial !important;"><span class="com" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">#!</span></code>(当然,这个不是固定的,你可以替换成其他字符串)。</p><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 30px;color: rgb(74, 74, 74);font-family: Avenir, -apple-system-font, 微软雅黑, sans-serif;text-align: start;">那么,执行完这句,返回的就是 <code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);line-height: 18px;font-family: consolas, menlo, courier, monospace, &quot;Microsoft Yahei&quot;!important;border-width: 0px !important;border-style: initial !important;border-color: initial !important;"><span class="lit" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">1</span><span class="pun" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">!#!#!</span></code>,再回看其他的节点,就一目明了了!</p><h2 style="box-sizing: border-box;margin-top: 1.5rem;margin-bottom: 1rem;color: rgb(21, 153, 87);line-height: 1.35;font-size: 24px;text-align: start;white-space: normal;font-family: Menlo, Monaco, &quot;Source Code Pro&quot;, Consolas, Inconsolata, &quot;Ubuntu Mono&quot;, &quot;DejaVu Sans Mono&quot;, &quot;Courier New&quot;, &quot;Droid Sans Mono&quot;, &quot;Hiragino Sans GB&quot;, 微软雅黑, monospace !important;">七 进一步思考</h2><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 30px;color: rgb(74, 74, 74);font-family: Avenir, -apple-system-font, 微软雅黑, sans-serif;text-align: start;"><strong style="box-sizing: border-box;color: rgb(0, 0, 0);">不折腾的前端,和咸鱼有什么区别</strong></p><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 30px;color: rgb(74, 74, 74);font-family: Avenir, -apple-system-font, 微软雅黑, sans-serif;text-align: start;"><strong style="box-sizing: border-box;color: rgb(0, 0, 0);">jsliang</strong> 每次解 LeetCode,都会先自己尝试破解,Submit 通过后,会查看下 LeetCode 社区其他小伙伴的破解思路,最后再看别人的代码,以此作为比较,吸取大神们的经验。</p><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 30px;color: rgb(74, 74, 74);font-family: Avenir, -apple-system-font, 微软雅黑, sans-serif;text-align: start;">这次,由于第一次解树的题目,所以抱着虚心的心态,前往观摩,还真碰到了个不错的讲解:</p><ul style="list-style-type: square;" class=" list-paddingleft-2"><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);line-height: 22px;font-size: 14px !important;"><span style="box-sizing: border-box;line-height: 22px;">写树算法的套路框架</span></span></p></li></ul><blockquote style="box-sizing: border-box;margin-bottom: 1.2em;padding: 15px 15px 15px 1rem;color: rgb(129, 145, 152);border-left-width: 6px;border-left-color: rgb(220, 230, 240);font-size: 14px;line-height: 22px;background: rgb(242, 247, 251);font-family: Avenir, -apple-system-font, 微软雅黑, sans-serif;text-align: start;white-space: normal;"><p style="box-sizing: border-box;white-space: pre-line;line-height: 30px;color: rgb(74, 74, 74);">由于原文采用 C++ 的编程风格,<strong style="box-sizing: border-box;color: rgb(0, 0, 0);">jsliang</strong> 引入的时候自动转换成 JavaScript。</p></blockquote><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 30px;color: rgb(74, 74, 74);font-family: Avenir, -apple-system-font, 微软雅黑, sans-serif;text-align: start;">以下是其内容:</p><hr style="box-sizing: border-box;margin-top: 1.5rem;margin-bottom: 1.5rem;border-style: dashed none none;border-top-color: rgb(165, 165, 165);border-right-width: initial;border-right-color: initial;border-left-width: initial;border-left-color: initial;border-bottom-width: initial;border-bottom-color: initial;height: 1px;color: rgb(80, 97, 109);font-family: Avenir, -apple-system-font, 微软雅黑, sans-serif;font-size: 16px;text-align: start;white-space: normal;"  /><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 30px;color: rgb(74, 74, 74);font-family: Avenir, -apple-system-font, 微软雅黑, sans-serif;text-align: start;">二叉树算法的设计的总路线:明确一个节点要做的事情,然后剩下的事抛给框架。</p><pre class="prettyprint linenums prettyprinted" style="box-sizing: border-box;padding-top: 8px;padding-bottom: 6px;background: rgb(254, 251, 236);border-radius: 0px;overflow-y: auto;color: rgb(80, 97, 109);text-align: start;font-size: 10px;line-height: 12px;font-family: consolas, menlo, courier, monospace, &quot;Microsoft Yahei&quot;!important;border-width: 1px !important;border-style: solid !important;border-color: rgb(226, 226, 226) !important;"><ol class="linenums list-paddingleft-2" style="list-style-type: none;"><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">let traverse </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">function</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">root</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">)</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  </span><span class="com" style="box-sizing: border-box;color: rgb(153, 149, 128);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">// root 需要做什么?在这做。</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  </span><span class="com" style="box-sizing: border-box;color: rgb(153, 149, 128);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">// 其他的不用 root 操心,抛给框架</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  traverse</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">root</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">left</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">);</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  traverse</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">root</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">right</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">);</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">}</span></code></span></span></p></li></ol></pre><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 30px;color: rgb(74, 74, 74);font-family: Avenir, -apple-system-font, 微软雅黑, sans-serif;text-align: start;">举两个简单的例子体会一下这个思路,热热身。</p><ul style="list-style-type: square;" class=" list-paddingleft-2"><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);line-height: 22px;font-size: 14px !important;"><span style="box-sizing: border-box;line-height: 22px;">如何把二叉树所有的节点中的值加一?</span></span></p></li></ul><pre class="prettyprint linenums prettyprinted" style="box-sizing: border-box;padding-top: 8px;padding-bottom: 6px;background: rgb(254, 251, 236);border-radius: 0px;overflow-y: auto;color: rgb(80, 97, 109);text-align: start;font-size: 10px;line-height: 12px;font-family: consolas, menlo, courier, monospace, &quot;Microsoft Yahei&quot;!important;border-width: 1px !important;border-style: solid !important;border-color: rgb(226, 226, 226) !important;"><ol class="linenums list-paddingleft-2" style="list-style-type: none;"><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">let plusOne </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">function</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">root</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">)</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  </span><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">if</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(!</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">root</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">)</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    </span><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">return</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">;</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">}</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  root</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">val </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">+=</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="lit" style="box-sizing: border-box;color: rgb(182, 86, 17);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">1</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">;</span></code></span></span></p></li><li><p><br  /></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  plusOne</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">root</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">left</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">);</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  plusOne</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">root</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">right</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">);</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">}</span></code></span></span></p></li></ol></pre><ul style="list-style-type: square;" class=" list-paddingleft-2"><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);line-height: 22px;font-size: 14px !important;"><span style="box-sizing: border-box;line-height: 22px;">如何判断两棵二叉树是否完全相同?</span></span></p></li></ul><pre class="prettyprint linenums prettyprinted" style="box-sizing: border-box;padding-top: 8px;padding-bottom: 6px;background: rgb(254, 251, 236);border-radius: 0px;overflow-y: auto;color: rgb(80, 97, 109);text-align: start;font-size: 10px;line-height: 12px;font-family: consolas, menlo, courier, monospace, &quot;Microsoft Yahei&quot;!important;border-width: 1px !important;border-style: solid !important;border-color: rgb(226, 226, 226) !important;"><ol class="linenums list-paddingleft-2" style="list-style-type: none;"><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">let isSameTree </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">function</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">root1</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> root2</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">)</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  </span><span class="com" style="box-sizing: border-box;color: rgb(153, 149, 128);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">// 都为空的话,显然相同</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  </span><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">if</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">root1 </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">==</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">null</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">&amp;&amp;</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> root2 </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">==</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">null</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">)</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    </span><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">return</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">true</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">;</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">}</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  </span><span class="com" style="box-sizing: border-box;color: rgb(153, 149, 128);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">// 一个为空,一个非空,显然不同</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  </span><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">if</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">root1 </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">==</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">null</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">||</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> root2 </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">==</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">null</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">)</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    </span><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">return</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">false</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">;</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">}</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  </span><span class="com" style="box-sizing: border-box;color: rgb(153, 149, 128);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">// 两个都非空,但 val 不一样也不行</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  </span><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">if</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">root1</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">val </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">!=</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> root2</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">val</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">)</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    </span><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">return</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">false</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">;</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">}</span></code></span></span></p></li><li><p><br  /></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  </span><span class="com" style="box-sizing: border-box;color: rgb(153, 149, 128);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">// root1 和 root2 该比的都比完了,进行节点比较</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  </span><span class="kwd" style="box-sizing: border-box;color: rgb(184, 84, 212);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">return</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> isSameTree</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">root1</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">left</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> root2</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">left</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">)</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">&amp;&amp;</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> isSameTree</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">root1</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">right</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> root2</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.</span><span class="pln" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">right</span><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">);</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 22px;display: block;word-break: inherit !important;"><code class="js language-js" style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pun" style="box-sizing: border-box;color: rgb(32, 32, 29);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">}</span></code></span></span></p></li></ol></pre><hr style="box-sizing: border-box;margin-top: 1.5rem;margin-bottom: 1.5rem;border-style: dashed none none;border-top-color: rgb(165, 165, 165);border-right-width: initial;border-right-color: initial;border-left-width: initial;border-left-color: initial;border-bottom-width: initial;border-bottom-color: initial;height: 1px;color: rgb(80, 97, 109);font-family: Avenir, -apple-system-font, 微软雅黑, sans-serif;font-size: 16px;text-align: start;white-space: normal;"  /><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 30px;color: rgb(74, 74, 74);font-family: Avenir, -apple-system-font, 微软雅黑, sans-serif;text-align: start;">大佬的解题套路如上,<strong style="box-sizing: border-box;color: rgb(0, 0, 0);">jsliang</strong> 觉得貌似有点道理,于是给记录下来,如果下次再碰到树,还能引用套路,无疑是件可喜的事!</p><hr style="margin-top: 1.5rem;margin-bottom: 1.5rem;white-space: normal;box-sizing: border-box;border-style: dashed none none;border-top-color: rgb(165, 165, 165);border-right-width: initial;border-right-color: initial;border-left-width: initial;border-left-color: initial;border-bottom-width: initial;border-bottom-color: initial;height: 1px;color: rgb(80, 97, 109);font-family: Avenir, -apple-system-font, 微软雅黑, sans-serif;font-size: 16px;text-align: start;"  /><p style="margin-top: 15px;margin-bottom: 15px;box-sizing: border-box;font-size: 16px;white-space: pre-line;line-height: 30px;color: rgb(74, 74, 74);font-family: Avenir, -apple-system-font, 微软雅黑, sans-serif;text-align: start;"><strong style="box-sizing: border-box;color: rgb(0, 0, 0);">不折腾的前端,和咸鱼有什么区别!</strong></p><p style="white-space: normal;text-align: center;"><img class="rich_pages" data-copyright="0" data-ratio="1" data-s="300,640" src="data:image/JPG;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCACBAIEDASIAAhEBAxEB/8QAHQAAAgMBAAMBAAAAAAAAAAAAAAgFBgcEAQIDCf/EAE0QAAEDAgUCAwUDCAUGDwAAAAECAwQFBgAHERIhEzEUIkEIFSMyURYzYRckQlZxdYGyJjQ4k9QYN0NSc5EnREhjaISVpKWxs8TS0+T/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/8QAFBEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8AanBgwpVFpN031fuZemZdbtym0CpO/wDGXVMoaLr/APzqEtpQGv2aH0AwDa4MKr9lP+k1/wCJf/rx123Auiy/aOtS2KpfFar8KZDeluJkvupbV8KQAktqcWDoWwdfr+I1wDP4MLBmrQsxLNvyl16g1q7Lop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Kte7gACtNMQrFEhUiuN1mzd9MXXJCpdUZDnVfmuBSnUo2LC0pCkplDVKm9NRpqQBizxrdmw5EqY2imLfWtamYzYcjglT4d3OO6rKlduyQO47aaeI9tyqfGpj8YszalCQwja88Y7R2NOtnkNrP+mcUBoO45wGO37Upd15pXJaNyssz7cheDlQYj/SaW08plI1SfEx1K1Lrg+ZY1KRxxjZ7VuKRVKj4V96G6tLK1uFgIBSoLCdpCHnQO5411/8ALHhVIrZY6gejrmyH+u91HSGWCCdm1KUAu6ApHmKddifxxIUqlyqfUUqBafjdLplfUUgp5UokNAFOqlKOpBHYaDjTAT+DBgwBgwYMAYMGDAGDBgwBgwYMAYMGDAGDBgwBgwYMAYMGDAGDBgwH/9k= " src="P8CbrweAZpBqYHvTTC0icrvjOvc8zgBOCZCB6viax1cMaO3iaicfibHeU09k8Uus2eyTFWaaBdORzGYrfRRTic7jmrbw"  data-type="jpeg" data-w="129"  /></p><p style="margin-top: 15px;margin-bottom: 15px;box-sizing: border-box;font-size: 16px;white-space: pre-line;line-height: 30px;color: rgb(74, 74, 74);font-family: Avenir, -apple-system-font, 微软雅黑, sans-serif;text-align: start;"><strong style="box-sizing: border-box;color: rgb(0, 0, 0);">jsliang</strong> 会每天在公众号发表一篇文章,从而帮助小伙伴们夯实原生 JS 基础,了解与学习算法与数据结构等等。</p><p style="margin-top: 15px;margin-bottom: 15px;box-sizing: border-box;font-size: 16px;white-space: pre-line;line-height: 30px;color: rgb(74, 74, 74);font-family: Avenir, -apple-system-font, 微软雅黑, sans-serif;text-align: start;">扫描上方二维码,关注 <strong style="box-sizing: border-box;color: rgb(0, 0, 0);">jsliang</strong> 的公众号,让我们一起折腾!</p><blockquote style="box-sizing: border-box;margin-bottom: 1.2em;padding: 15px 15px 15px 1rem;color: rgb(129, 145, 152);border-left-width: 6px;border-left-color: rgb(220, 230, 240);font-size: 14px;line-height: 22px;background: rgb(242, 247, 251);font-family: Avenir, -apple-system-font, 微软雅黑, sans-serif;text-align: start;white-space: normal;"><p style="box-sizing: border-box;white-space: pre-line;line-height: 30px;color: rgb(74, 74, 74);"><img class="" data-ratio="0.3522727272727273" src="data:image/PNG;base64,iVBORw0KGgoAAAANSUhEUgAAAFgAAAAfCAYAAABjyArgAAARRUlEQVRo3u2aeVBUV77HP7e7wRXsaEB5mtBGEm3U2OIuLuBMZokQmwcuGSVpSJnNzJPgVhkDgjuoAUysKd/kKZkxk6mM8yAaEqOjNGkcFkUwi2gykaYExahsTYNNL+f90fSVFlBr8l5Naur9qk715Z57vvec7/me3/2d30ESQvhLktTC/9v/ugkhJAkQAAXHP0ahUKBQKFAqlSgUSpQKBQpl169CgSQpUEgSkiSBJHlQEAiES+ASLlwud3E6ne5flxOn04XL5ZTrXMIlPy+E8HRGvv5XsMWLlgAgAcJDrlKpdBeF8s61UumuUyi7SJaQJEV3frvI6SLW5SbT6ewq3a+d3iS7XC6Z2O5E/6vY4kVLUAHe5CpVqLx+3eXoRx9TWFhIeXk5llaLF5Cfvx/Tp08nckEk0c9E4XQpUSgc7glxKpCQuubyjgmXcK8EutaQ5Cb33JlK8v+ST3V1tdfzWq0WfayesGmTH2hwPxYcCRCfnTqGSqWSSVWpVO6iVFFk/JzMnZnU19c/UIdGjhzJ+jfWM3/+PBxOJ06nA4ejqzgdOBxOWeHdlXyt/hpvZ7/DxeqLAERERKDT6QCoqqrCaDQCME47jlWrVzEiaHiv72+4dp19Oft+FDiLFy1xE/zXohOolKo7xKp88FGp2JSSRn5evtxArVaj1+vRaDTMnz8fgKKiIsxmM/n5+TQ3N8vP6mP0rF2/hgEDB+BwOLA7HDgcdhwOh7fLEC5amlp47eVf09rail6vJysrC41G49VZs9nM66+/Tn5+Pv7+/mzL3NZjUG2tbaxelfSjwfH4YXHKdEqYSj4XJWdKxNmqM+L8V1VCH6MXXYtXqNVqkZaWJpqamsS97ODBg0KtVsvtxmnHieISkzhbdVaUni0RppLPRaHplDhhPC6OnfxUFBz/WBz59COh1WoFIAwGgxeeB+fud3iw//zRh15l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BweTlZXF7373OwIDA+WsJJ4wra/Bhk2ZTMqmVEY9MrLbaUT3dCNecaznH0+Of3acxOcTvdTQ3XoL/TxYqampjB8/nsjISF599VUyMzPJycnh8uXLVFdXYzAYCAgIYMeOHdTW1vbAkCSJhoYGBg0aRGJiIkuXLmX27NnEx8czYMAArFYrFouFsrIyLBYLOTk5nDx5kqKiIoYMGYJCoeDDDz9k3rx5KJVK2tvbSU5OJiAggD179tDW1obFYqGgoICHH36YXbt2UV1dTXBwMCtXrmT27NmUl5fLCa97EuyxefPnsTB6IVOmTmGIv3/Xv055WHET09LaSsXZCgqOFvB50edy27FjxzJx4kQOHz4MXS7kXgQDHDp0iIyMDPz9/TGbzQQHB5OTk8PMmTNxuVyMGjUKpVLZK8F0fXAnTpxIYGAg58+fp6ioiMWLF3Px4kX5Hb6+voSHhyNJErW1tVy+fNkLY/LkyQQFBeF0OunXr5/se4UQhIaGMnz4cJ5++mnS09OxWq3Q9d0ZMWIEI0aMoKWlhQsXLjwYwf9s87iKH4splco+vwN3mySEGChJkvWf3el/RRNCSP8DXozPg2zz/AsAAAAASUVORK5CYII= " src="P8CbrweAZpBIklVeU34txePPnSDibtibuTicYAKGxzNCDLTk6EkscylxF0aKHD2eVFBkq4Oiap9ib9onH8uL67tLVZA"  data-type="png" data-w="88" style=" box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(238, 238, 238);border-radius: 6px;margin: 0px;top: 0px;left: 0px;right: 0px;bottom: 0px;  "  /><br style="box-sizing: border-box;"  /><span xmlns:dct="http://purl.org/dc/terms/" property="dct:title" style="box-sizing: border-box;">jsliang 的文档库</span> 由 梁峻荣 采用 知识共享 署名-非商业性使用-相同方式共享 4.0 国际 许可协议进行许可。<br style="box-sizing: border-box;"  />基于https://github.com/LiangJunrong/document-library上的作品创作。<br style="box-sizing: border-box;"  />本许可协议授权之外的使用权限可以从 https://creativecommons.org/licenses/by-nc-sa/2.5/cn/ 处获得。</p></blockquote><p><br  /></p>
                </div>
                

                
  <div class="ct_mpda_wrp" id="js_sponsor_ad_area" style="display: none;"></div>


                
                <div class="read-more__area" id="js_more_read_area" style="display:none;">
                    
                </div>

                                    
                    <div class="reward_area tc reward_area_primary" id="js_reward_area" style="display:none;">
                        <div class="reward-avatar" style="display: none;" id="js_reward_avatar">
                            <img src="" alt="" id="js_reward_author_head">
                        </div>

                        
                                                    <div class="reward-author" style="display: none;" id="js_reward_author">jsliang</div>
                                                                        <p class="reward_button_wrp">
                        <span id="js_author_reward_qrcode" class="reward_pop_panel">
                            <img id="js_author_reward_qrcode_img" src="" alt="赞赏二维码">
                            <strong>微信扫一扫赞赏作者</strong>
                        </span>
                            <a class="reward_button" id='js_reward_link' href="##"><span id="js_reward_link_text">赞赏</span></a>
                        </p>
                        <div id="js_reward_inner" class="reward_area_inner" style="display:none;">
                            <p class="weui-loadmore weui-loadmore_line reward_user_tips" id="js_reward_total_parent">
                            <span class="weui-loadmore__tips">
                                <a href="javascript:;" id="js_reward_total"></a>&nbsp;<span id="js_reward_total_text">人赞赏</span>
                            </span>
                            </p>
                            
                            <div id="js_reward_list" class="reward_user_list"></div>
                            <div id="js_reward_pagination" class="simple_pagination" style="display: none;">
                            <button disabled class="btn_sp_prev js_reward_pagination_prev">上一页</button>
                            <span class="sp_page_num_area">
                                <a class="sp_page_current js_reward_pagination_curpage" href="javascript:;">1</a>&#47;<span class="sp_page_num js_reward_pagination_totalpage">3</span>
                            </span>
                            <button class="btn_sp_next js_reward_pagination_next">下一页</button>
                            </div>
                        </div>
                    </div>
                                            <div class="reward_qrcode_area reward_area tc" id="js_reward_qrcode" style="display:none;">
                            <p class="tips_global">长按二维码向我转账</p>
                                                        <p class="reward_tips"></p>
                            <span class="reward_qrcode_img_wrp"><img class="reward_qrcode_img" id="js_reward_qrcode_img"></span>
                            <p class="tips_global">受苹果公司新规定影响,微信 iOS 版的赞赏功能被关闭,可通过二维码转账支持公众号。</p>
                        </div>
                                                </div>
		<div class="comment">
			<h3 style="margin:26px 0;font-weight:100;padding-bottom:4px;border-bottom:1px solid #ccc;">精选留言</h3>
		    暂无...
		</div>
	</div>
	<div class='dy_all'>
		<a href='https://www.52pojie.cn/' target='_blank'>
			吾爱破解论坛
		</a>
	</div>
</body>