摘自:https://www.cnblogs.com/zhuifeng-mayi/p/9270592.html 1、普通索引 这是最基本的索引,它没有任何限制,比如上文中为title字段创建的索引就是一个普通索引,MyIASM中默认的BTREE类型的索引,也是我们大多数情况下用到的索引。 -–直接创 ...
分类:
数据库 时间:
2020-01-28 09:16:57
阅读次数:
77
布局文件 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android ...
分类:
移动开发 时间:
2020-01-27 22:01:22
阅读次数:
99
在使用golang go sql driver操作mysql时,往tag表插入一条新数据时,如果插入失败,id仍会自增,插入数据失败次数过多时,id就看起来十分混乱。 所以我就在搜索下原因,发现是InnoDB的机制,大致就是说InnoDB的innodb_autoinc_lock_mode模式下,自增 ...
分类:
数据库 时间:
2020-01-27 15:47:20
阅读次数:
209
Being unique is so important to people on Mars that even their lottery is designed in a unique way. The rule of winning is simple: one bets on a numbe ...
分类:
其他好文 时间:
2020-01-27 15:17:12
阅读次数:
55
Every email consists of a local name and a domain name, separated by the @ sign. For example, in , is the local name, and is the domain name. Besides ...
分类:
其他好文 时间:
2020-01-27 09:33:24
阅读次数:
73
一、Prim Prim算法的思想是: 1. 整个顶点集为$V$,初始选一个起点$s$,令集合$u=\{s\}, v=\{\}$; 2. 在集合$u$与集合$V u$中的点组成的边中,选一条权值最小的边$u_0v_0$加入MST,并且将$u_0$加入$u$; 3. 重复直到MST有$n 1$条边或$n ...
分类:
其他好文 时间:
2020-01-26 16:06:05
阅读次数:
101
功能: 根据不同数据类型进行排序 格式: sort [OPTION]... [FILE]... sort [OPTION]... --files0-from=F 参数: -b, --ignore-leading-blanks 忽略每行开始前的空格 ignore leading blanks -d, ...
分类:
编程语言 时间:
2020-01-26 13:13:27
阅读次数:
116
"Link" 先让$k$条边的权值为$0$然后建出MST。 然后我们枚举非树边$(u,v,w)$,树上$u,v$间的路径上的边的边权都必须$\le w$。 这个操作可以用并查集/树剖+线段树等数据结构维护。 ...
分类:
Web程序 时间:
2020-01-24 17:24:58
阅读次数:
113
let str = ' foo ' //去除开头空格 console.log(str.trimLeft()) console.log(str.trimStart()) //去除尾部空格 console.log(str.trimRight()) console.log(str.trimEnd()) / ...
分类:
其他好文 时间:
2020-01-24 13:17:27
阅读次数:
90
B 有n个盒子需要你捡,第i个盒子的坐标为 (Xi , Yi)。你从(0,0)出发,每次只能选择向上或者向右移动,问能否将n个盒子都捡完,若可以捡完,则输出字典序最小的一条路线 简单模拟 #include<bits/stdc++.h> using namespace std; typedef lon ...
分类:
其他好文 时间:
2020-01-24 09:25:35
阅读次数:
81