官网地址: https://channel9.msdn.com/ Channel 9 is a community. We bring forward the people behind our products and connect them with those who use them. W ...
分类:
Web程序 时间:
2021-01-16 12:00:49
阅读次数:
0
介绍 Trie树(又名字典树,前缀树)是一种多叉树,是一种专门处理字符串的数据结构,Trie树 示例图如下 保存的数据为单词列表[goods,good,gmail,grade,dog,cap,cook,map],应用场景有搜索提示 代码实现 import java.util.ArrayList; i ...
分类:
编程语言 时间:
2021-01-06 12:00:21
阅读次数:
0
课程demo DELETE message PUT message { "settings": { "number_of_shards": 20 } } GET message POST message/_doc?routing=1 { "content":"good" } POST message ...
分类:
其他好文 时间:
2021-01-01 11:43:15
阅读次数:
0
Portal 题意: 给出排列 \(p_1,p_2,p_3,\dots,p_n\),定义一个区间 \([l,r]\) 是好的当且仅当 \(p_l,p_{l+1},p_{l+2},\dots,p_r\) 包含了连续的 \(r-l+1\) 个数。 \(q\) 次询问,每次询问给出两个数 \(l,r\), ...
分类:
其他好文 时间:
2020-12-31 12:03:23
阅读次数:
0
原题链接 参考直方图最大矩形那道题,边界点是到权值比它小的天数为止,所以单调栈是单调递增栈,这道题我们需要的是while循环后的边界点,如果在while循环里取第一个点反而会导致答案错误,因为存在这种情况: 7 5 3 如果取while循环里第一个点就会少算7 #include <iostream> ...
分类:
其他好文 时间:
2020-12-29 11:37:41
阅读次数:
0
阿里云双12年终钜惠活动,需要的赶紧购买哟! https://www.aliyun.com/1212/home?userCode=fp9ccf07&taskCode=pintuan20201212&recordId=298758https://www.aliyun.com/minisite/good ...
分类:
其他好文 时间:
2020-12-16 12:57:21
阅读次数:
5
array=("I am Chinese" "Good") 错误用法 for item in ${array[@]}; do echo $item done 结果: I am Chinese Good 正确用法 for item in "${array[@]}"; do echo $item don ...
分类:
编程语言 时间:
2020-09-18 00:22:21
阅读次数:
44
面向对象 面向对象也有封装的作用:将同一个函数封装到一个类中。 如果函数放在类中就不叫做函数了,而叫做方法 面相对象中方法的调用 class Good: def func(self): print("杨子莲") def func1(self): print("杨子列") x = Good() #创建 ...
分类:
其他好文 时间:
2020-09-17 20:10:15
阅读次数:
25
如果你没有房子和炉火来作为对妻子的保障,那么就千万不要结婚。 2.The proof of gold is fire,the proof of woman,gold;the proof ofman,a woman. 检验金子的是火,检验女人的是金子,检验男人的是女人。 3.A good Wife l ...
分类:
其他好文 时间:
2020-09-17 17:31:55
阅读次数:
45
Given the root of a binary tree and an integer distance. A pair of two different leaf nodes of a binary tree is said to be good if the length of the s ...
分类:
其他好文 时间:
2020-07-27 15:58:17
阅读次数:
93