码迷,mamicode.com
首页 >  
搜索关键字:right    ( 9126个结果
Leetcode1382.将二叉搜索树变平衡
题目 代码 /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NU ...
分类:其他好文   时间:2020-11-10 10:47:27    阅读次数:5
HTML的标题样式
标题样式1 <p> <span style=" text-align: center; padding-bottom: 6px; padding-left: 20px; padding-right: 500px; color: #800080; padding-top: 6px; box-shado ...
分类:Web程序   时间:2020-11-08 17:16:18    阅读次数:37
Leetcode 对称二叉树
Leetcode 101 数据结构定义: /** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x ...
分类:其他好文   时间:2020-11-07 16:16:53    阅读次数:21
二叉树相关
#include <iostream> #include <vector> #include <stack> #include <queue> template <class T> typedef struct node { node* left; node* right; T val; std:: ...
分类:其他好文   时间:2020-11-06 01:25:12    阅读次数:16
Leetcode 104. 二叉树的最大深度
题解:递归求左右子树的最大深度。 /** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) { ...
分类:其他好文   时间:2020-11-06 01:10:43    阅读次数:21
线性方程整数解,扩展欧几里得解分析
###符号说明 $y_{0}=\left ( a_{1},a_{2},...,a_ \right ) 即y_{0}是a_{1},a_{2},...,a_$的最大公因数 \(d|a_{i}(d整除a_{i},a_{i}是d的倍数)\) ###定理 \(设a_{i}\in Z ,A=\left \{ y ...
分类:其他好文   时间:2020-11-04 17:50:48    阅读次数:12
二分查找(C++实现)
class Solution { public: int peakIndexInMountainArray(vector<int>& arr) { int n = arr.size(); if(n==0) { return -1; } int left = 0; int right = n-1; w ...
分类:编程语言   时间:2020-11-04 17:43:48    阅读次数:26
elementUI , echarts问题总结
1.如何在elementUI的input后面添加单位符号 <i slot="suffix" style="font-style:normal;margin-right: 10px;">℃</i> 2.如何在echarts柱状图上显示数值 在需要显示数值的series里添加: label: { sho ...
分类:其他好文   时间:2020-10-30 11:44:30    阅读次数:23
求根到叶子节点数字之和
##前序遍历+判断 /** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) { val = x ...
分类:其他好文   时间:2020-10-30 11:39:04    阅读次数:14
conky配置(附配置项作用解释)
alignment top_right #是否嵌入桌面 background yes #是否绘制窗口边框 draw_borders no #窗口边框 border_width 10 #cpu_avg_samples 2 #默认颜色 #default_color cornflowerblue #默认字 ...
分类:其他好文   时间:2020-10-29 10:29:31    阅读次数:29
9126条   上一页 1 ... 11 12 13 14 15 ... 913 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!