静态链表 1. 用结构体数组的方式声明,所占的存储空间是固定的,例如: struct StructName{ int a; long b; char c[size]; struct StructName *next; //静态链表区别于数组的地方,包含了一个指向同类型结构体的指针 }List[LEN ...
分类:
编程语言 时间:
2020-12-23 12:17:32
阅读次数:
0
/*Hatsune Miku 4ever!*/ #include <bits/stdc++.h> using namespace std; typedef long long ll; #define _for(i,a,b) for(int i = (a);i < b;i ++) #define _r ...
分类:
其他好文 时间:
2020-12-23 11:47:45
阅读次数:
0
/*Hatsune Miku 4ever!*/ #include <bits/stdc++.h> using namespace std; typedef long long ll; #define _for(i,a,b) for(int i = (a);i < b;i ++) #define _r ...
分类:
编程语言 时间:
2020-12-23 11:45:22
阅读次数:
0
/*Hatsune Miku 4ever!*/ #include <bits/stdc++.h> using namespace std; typedef long long ll; #define _for(i,a,b) for(int i = (a);i < b;i ++) #define _r ...
分类:
其他好文 时间:
2020-12-23 11:43:21
阅读次数:
0
SqlQueryExecution ① 将Statement树转化为AST树 ② 做语法解析(根据元数据) ③ 权限校验 ④ 构造逻辑执行计划 LogicalPlanner#planStatementWithoutOutput:将AST树转为逻辑执行计划 ⑤ 基于RBO进行优化 ⑥ Stage划分 ...
分类:
其他好文 时间:
2020-12-22 12:56:53
阅读次数:
0
前言 先引用一张图片 目录图 一、SQL语句优化 开启慢查询功能 vim /etc/my.cnf [mysqld] slow-query-log = on # 开启慢查询功能 slow_query_log_file = /data/slow-query.log # 慢查询日志存放路径与名称 long ...
分类:
数据库 时间:
2020-12-22 12:33:42
阅读次数:
0
String file = urlConfig.getLocalDir()+videoId+".mp4"; RandomAccessFile randomFile = new RandomAccessFile(new File(file), "r");//只读模式 long contentLengt ...
分类:
其他好文 时间:
2020-12-21 11:43:47
阅读次数:
0
Java 连接SQL 数据库连接 import java.sql.*; // 全部导入 public class DemoFrame{ public static Connection conn = null; public static Statement stmt = null; // 尽管将s ...
分类:
数据库 时间:
2020-12-21 11:11:47
阅读次数:
0
秋招的时候还记得面试官问过我hashcode是什么,对于int、long、string类型的hashcode有什么区别,和equals一起是怎么使用的,为什么重写hashcode的同时也要重写equals。八股文背多了,也只是会表面,有空的时候还是整理一下,顺便写了几个例子加深下印象。hashcode是什么?hash一般翻译做“散列”,也有直接音译为“哈希”的,就是把任意长度的输入,通过散列算法,
分类:
其他好文 时间:
2020-12-19 12:00:52
阅读次数:
2
【问题】mysql从5.6升级到5.7后出现:插入数据和修改数据时出错Caused by: com.ibatis.common.jdbc.exception.NestedSQLException: The error occurred while applying a parameter map. ...
分类:
数据库 时间:
2020-12-18 12:26:29
阅读次数:
2