日期 题目地址:https://leetcode.com/problems/mirror-reflection/description/ 题目描述 There is a special square room with mirrors on each of the four walls. Except for the southwest corner, there are receptors on each of the remaining corners, numbered 0, 1, and 2. The square room has walls...
https://leetcode.com/problems/symmetric-tree/ Could anyone help to find out the issue? /** * Definition for a binary tree node. * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * }; */ bool s; bool func(struct TreeNode *p, struct TreeNode ...
leetcodetreenode-leetcode-226-Invert-Binary-Tree:leetcode-226-Invert-二叉 leetcode 树节点leetcode 226 - 反转二叉树 方法一:递归 C# public TreeNode InvertTree ( TreeNode root ) { if ( root == null ) return root ; var temp = root . left ; root . left = root . right ; root . rig...