FastJson 将对象转换为JSON字符串 下载地址:https://github.com/alibaba/fastjson 转换JSON字符串的步骤: 1. 引入JAR包 ①IDEA中新建文件夹lib ②粘贴fastjson-1.2.70.jar文件 ③打开File-Project Struct ...
分类:
Web程序 时间:
2021-05-23 23:27:08
阅读次数:
0
二叉搜索树 二叉搜索树满足这样的性质: 每个节点 x 有一个键值。 节点 x 的键值大于等于左子树的任意节点 y 的键值. 节点 x 的键值小于等于右子树的任意节点 z 的键值. 二叉搜索树的表达 struct Node{ int key; Node*parent ; Node*left; Node ...
分类:
其他好文 时间:
2021-05-23 23:08:30
阅读次数:
0
3. 区间合并 原理:区间排序左端点有交集的区间可以合并 struct OI{int l, r;}num[N]; inline int cmp(OI a, OI b){return a.l < b.l;} //按照左端点排序 sort(num+1, num+1+n,cmp); void combin ...
分类:
其他好文 时间:
2021-05-23 23:02:19
阅读次数:
0
//单链表基本操作 1 #include <stdio.h> 2 3 #include <stdlib.h> 4 5 6 typedef struct _NODE 7 { 8 int data; 9 struct _NODE *pNext; 10 }NODE,*PNODE; 11 12 PNODE ...
分类:
编程语言 时间:
2021-05-23 22:56:58
阅读次数:
0
题目链接 维护一个区间最小值同时维护一个区间最小值的减法 #include <bits/stdc++.h> using namespace std; const int N = 100010; int a[N]; int n,k; struct node{ int l,r; int v,add; } ...
分类:
其他好文 时间:
2021-05-04 16:06:56
阅读次数:
0
\(\text{Problem}:\)Cowmpany Cowmpensation \(\text{Solution}:\) 不难发现,虽然权值种类很多,但在一种分配方案中,不同的权值个数只有 \(O(n)\) 个。故设 \(f_{i}\) 表示分配了 \(i\) 种权值的方案数,答案为: \[ \ ...
分类:
其他好文 时间:
2021-05-03 12:25:45
阅读次数:
0
splay 伸展树 struct node1{ int son[2],fa; int siz,val,cnt; }a[N*100]; int rt[N*4],seg; int v[N],maxn; struct Splay{ inline int get(int x){ return x==a[a[ ...
分类:
其他好文 时间:
2021-04-30 12:45:13
阅读次数:
0
大纲: 双向链表-list 压缩表-ziplist 快速表-quicklist 一、双向链表-list redis早期版本处理list用的就是双向链表 struct listNode{ struct listNode *prev; //前一个节点 struct listNode *nenxt; // ...
分类:
其他好文 时间:
2021-04-30 12:28:31
阅读次数:
0
快速傅里叶变换:在 \(O(nlog(n))\) 内求出两个多项式的卷积 ###前置知识 ####多项式的点表示法 对于任意一个多项式 \(A(x)=a_0+a_1x^1+a_2x^2+a_3x^3+...+a_nx^n\),我们都可用 \(n+1\) 个点将它表示出来 证明 任取 \(n+1\) ...
分类:
其他好文 时间:
2021-04-30 12:27:41
阅读次数:
0
现象 通过JDBC连接MySQL提示 分析 先检查权限问题 grant all privileges on *.* to 'root'@'%' with grant option; 可能你的密码错了 这个容易被忽略! ...
分类:
数据库 时间:
2021-04-30 12:01:05
阅读次数:
0