码迷,mamicode.com
首页 >  
搜索关键字:left align    ( 14598个结果
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
Mysql索引、explain执行计划
1、索引的使用场景 哪些情况使用索引: 1、主键自动建立唯一索引 2、频繁作为查询条件的字段应该创建索引 where 3、多表关联查询中,关联字段应该创建索引on两边都要创建索引 select * from user left join order on user.id = order.userid ...
分类:数据库   时间:2020-04-12 16:18:16    阅读次数:106
二叉树
二叉树 根节点:树中上部的节点 左叶子节点 右叶子节点 子树 完整的子树 一个根节点,左右叶子节点组成 不完整的子树 根节点,左叶子节点 根节点,右叶子节点 根节点 特点:每一个节点都可以作为某一颗子树的根节点 构造二叉树 想法:创建列表,每次循环判断节点的left和right,如果不为空将该节点放 ...
分类:其他好文   时间:2020-04-12 14:24:51    阅读次数:43
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
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
Leetcode 215、数组中第k个最大的元素
题目链接:kth-largest-element-in-an-array 方法1: 使用快速排序。 1、对数组进行partition,从left到right随机选择一个主元pivot,将pivot与left的元素交换位置。 另索引 j 初始为left,扫描从left + 1到right的元素,若小于 ...
分类:编程语言   时间:2020-04-11 20:20:18    阅读次数:73
二叉树的基础实现 代码
class BinaryTree <T extends Comparable<T>>{ private class Node{ private Comparable<T> data;//可以比较大小 private Node parent;//保存父节点 private Node left; pri ...
分类:其他好文   时间:2020-04-11 18:59:38    阅读次数:84
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
scss
嵌套规则 ...... 声明变量 // scss $width: 50px; .wt { width: $width; } 数学运算 // scss #id { width: (1 + 2) *3px; width: $width/2; margin-left: 5px + 8px/2px; } p ...
分类:Web程序   时间:2020-04-11 13:10:27    阅读次数:77
14598条   上一页 1 ... 83 84 85 86 87 ... 1460 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!