{"id":319,"date":"2026-04-28T09:29:45","date_gmt":"2026-04-28T01:29:45","guid":{"rendered":"https:\/\/blog.higgus17.cloud\/?p=319"},"modified":"2026-04-28T09:29:45","modified_gmt":"2026-04-28T01:29:45","slug":"%e6%a0%91%e7%9a%84%e6%95%b0%e6%8d%ae%e7%bb%93%e6%9e%84%e4%b8%8e%e9%80%92%e5%bd%92","status":"publish","type":"post","link":"https:\/\/blog.higgus17.cloud\/?p=319","title":{"rendered":"\u6811\u7684\u6570\u636e\u7ed3\u6784\u4e0e\u9012\u5f52"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4f20\u9012\u5c40\u90e8\u53d8\u91cf\u8fdb\u884c\u9012\u5f52<\/h2>\n\n\n\n<details class=\"wp-block-details is-layout-flow wp-block-details-is-layout-flow\"><summary>\u793a\u4f8b\u4ee3\u7801<\/summary>\n<pre class=\"wp-block-code\"><code>\/**\n * Definition for a binary tree node.\n * public class TreeNode {\n *     int val;\n *     TreeNode left;\n *     TreeNode right;\n *     TreeNode() {}\n *     TreeNode(int val) { this.val = val; }\n *     TreeNode(int val, TreeNode left, TreeNode right) {\n *         this.val = val;\n *         this.left = left;\n *         this.right = right;\n *     }\n * }\n *\/\nclass Solution {\n    public int maxDepth(TreeNode root) {\n        if (root == null ) return 0;\n        return Math.max(maxDepth(root.left), maxDepth(root.right)) + 1; \n    }\n}<\/code><\/pre>\n<\/details>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f20\u9012\u5c40\u90e8\u53d8\u91cf\u8fdb\u884c\u9012\u5f52<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-319","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.higgus17.cloud\/index.php?rest_route=\/wp\/v2\/posts\/319","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.higgus17.cloud\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.higgus17.cloud\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.higgus17.cloud\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.higgus17.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=319"}],"version-history":[{"count":2,"href":"https:\/\/blog.higgus17.cloud\/index.php?rest_route=\/wp\/v2\/posts\/319\/revisions"}],"predecessor-version":[{"id":321,"href":"https:\/\/blog.higgus17.cloud\/index.php?rest_route=\/wp\/v2\/posts\/319\/revisions\/321"}],"wp:attachment":[{"href":"https:\/\/blog.higgus17.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=319"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.higgus17.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=319"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.higgus17.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=319"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}