###符号说明 $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
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
题目: 请写出一个数组拍平函数。效果如下: var arr=['a', ['b', 'c'], 2, ['d', 'e', 'f'], 'g', 3, 4]; flat(arr) //a,b,c,2,d,e,f,g,3,4 方法一:使用toString方法先将arr转换为一个字符串, 再以split ...
分类:
编程语言 时间:
2020-11-01 20:46:54
阅读次数:
20
下面用到的包已放到文件里需要的可以自己下载 1.select 简单查询命令 #1.查询表中所有的数据 mysql> select * from test.student; #2.查看所有数据之前,先查看数据量 mysql> select count(*) from test.student; #3. ...
分类:
编程语言 时间:
2020-11-01 10:28:49
阅读次数:
16
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
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
str=‘helloworld‘join合并,以join前的string为分隔符,将列表中的元素合并为一个新的字符串str_1=‘*‘.join([‘Are‘,‘you‘,‘ok‘])print(str_1)#结果Are*you*ok分隔,split将string根据分隔符分隔成列表,也可以带参数num(分隔次数)splitlines,按照行(‘\r‘,‘\
分类:
编程语言 时间:
2020-10-29 10:01:01
阅读次数:
21
You are given a perfect binary tree where all leaves are on the same level, and every parent has two children. The binary tree has the following defin ...
分类:
其他好文 时间:
2020-10-27 11:41:41
阅读次数:
23
二叉树的后续遍历(Leetcode 145) 数据结构定义: // Definition for a binary tree node. public class TreeNode { int val; TreeNode left; TreeNode right; TreeNode() {} Tre ...
分类:
其他好文 时间:
2020-10-24 10:25:33
阅读次数:
22