- 博客(6)
- 收藏
- 关注
原创 py学习笔记
1.切片 list L L[-2:-4] L[1:10:2]同matlab L[:]复制 tuple (0,1,2,3,4)[0:3] 字符串 2.print 默认换行 print x 不换行 print x, print y, or print x,y
2020-01-20 16:34:13 151
原创 【Data Structure】Tree
Recently I am learning tree, which is a bit tricky foe me. So I decide to keep the log to record some basic steps of it. Binary Tree typedef struct TreeNode *Tree; struct TreeNode { int Element; Tre...
2019-10-15 18:38:56 139
原创 Merge Sort
计算逆序对个数 Bubble Sort/Insertion Sort 由于冒泡排序就是交换逆序对,所以冒泡排序的交换次数可以通过用归并排序算逆序对次数达到 插入排序同理 int k,n,ans=0; int a[50010],b[50010];//a原数组,b暂存数组 void merge_sort(int l,int r) {//归并 if(l==r)return ;//...
2019-10-13 11:15:12 127 1
原创 record of avoidable errors
Errors appears foolish are factually a manifestation of unfamiliarity of knowledge ds preview linked list 1.Knowing the number of node n and use for loop to go through the linked list Forget p=p->n...
2019-08-14 11:38:58 110
原创 codeforce #578(DIV.2)
codeforce #578(DIV.2) A.hotel register Input ‘L’,register in the first room from the left side. The same with ‘R’. Input number 1-10(note that it’s not 0-9),log out the corresponding room. key: Define...
2019-08-14 11:28:08 1222
原创 reference
这里写自定义目录标题欢迎使用Markdown编辑器新的改变功能快捷键合理的创建标题,有助于目录的生成如何改变文本的样式插入链接与图片如何插入一段漂亮的代码片生成一个适合你的列表创建一个表格设定内容居中、居左、居右SmartyPants创建一个自定义列表如何创建一个注脚注释也是必不可少的KaTeX数学公式新的甘特图功能,丰富你的文章UML 图表FLowchart流程图导出与导入导出导入 欢迎使用Ma...
2019-08-12 11:44:29 127
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人