码迷,mamicode.com
首页 >  
搜索关键字:easyui treegrid treenode    ( 5856个结果
构建镜向二叉树
题目描述 操作给定的二叉树,将其变换为源二叉树的镜像。 输入描述: 二叉树的镜像定义:源二叉树 8 / \ 6 10 / \ / \ 5 7 9 11 镜像二叉树 8 / \ 10 6 / \ / \ 11 9 7 5 /* struct TreeNode { int val; struct Tre ...
分类:其他好文   时间:2020-04-13 19:50:36    阅读次数:50
对称的二叉树
时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 32M,其他语言64M 题目描述 请实现一个函数,用来判断一颗二叉树是不是对称的。注意,如果一个二叉树同此二叉树的镜像是同样的,定义其为对称的。 思路: 判断二叉树是否对称。首先判断该二叉树是否为空,若不为空,根节点及其左右子树,判断左 ...
分类:其他好文   时间:2020-04-12 18:41:09    阅读次数:61
235. 二叉搜索树的最近公共祖先
1 /** 2 * Definition for a binary tree node. 3 * struct TreeNode { 4 * int val; 5 * TreeNode *left; 6 * TreeNode *right; 7 * TreeNode(int x) : val(x), ...
分类:其他好文   时间:2020-04-12 18:30:30    阅读次数:65
leetcode104,111,543 求二叉树深度的dfs解法
104.求二叉树的最大深度 class Solution: def maxDepth(self, root: TreeNode) -> int: if root == None: return 0 else: leftdepth = self.maxDepth(root.left) rightdep ...
分类:其他好文   时间:2020-04-12 10:47:43    阅读次数:73
[刷题] 257 Binary Tree Paths
要求 给定一棵二叉树,返回所有表示从根节点到叶子节点路径的字符串 思路 递归地返回左右子树到叶子节点的字符串 示例 1 class Solution { 2 public: 3 vector<string> binaryTreePaths(TreeNode* root) { 4 5 vector<s ...
分类:其他好文   时间:2020-04-12 10:44:25    阅读次数:60
94. 二叉树的中序遍历
94. 二叉树的中序遍历 给定一个二叉树,返回它的中序 遍历。 示例: 输入: [1,null,2,3] 1 \ 2 / 3 输出: [1,3,2] /** * Definition for a binary tree node. * public class TreeNode { * int va ...
分类:其他好文   时间:2020-04-11 23:54:51    阅读次数:73
226. 翻转二叉树
1 /** 2 * Definition for a binary tree node. 3 * struct TreeNode { 4 * int val; 5 * TreeNode *left; 6 * TreeNode *right; 7 * TreeNode(int x) : val(x), ...
分类:其他好文   时间:2020-04-11 20:36:05    阅读次数:66
EasyUi messager默认样式修改
``` $.messager.defaults = { ok: "是", cancel: "否", width: 300 }; $.messager.confirm('删除记录', 'Please enter your name:', function (r) { if (r) { alert('Y... ...
分类:其他好文   时间:2020-04-11 19:00:38    阅读次数:399
222. 完全二叉树的节点个数
1 /** 2 * Definition for a binary tree node. 3 * struct TreeNode { 4 * int val; 5 * TreeNode *left; 6 * TreeNode *right; 7 * TreeNode(int x) : val(x), ...
分类:其他好文   时间:2020-04-11 18:56:31    阅读次数:87
1.easyui实现上传文件,显示图片操作,还有jq双击放大图片操作
@{ Layout = "~/Views/_LayoutBase.cshtml"; <style> #demo3 select { width: 100%; } .datagrid-row { height: 100px; text-align: center; } .datagrid-cell-c ...
分类:Web程序   时间:2020-04-11 18:48:27    阅读次数:86
5856条   上一页 1 ... 29 30 31 32 33 ... 586 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!