1 #include <stdio.h> 2 #include <stdlib.h> 3 #include "math.h" 4 5 typedef struct demo 6 { 7 int* base; 8 int* top; 9 int stacksize; 10 }sqstack; 11 1 ...
分类:
其他好文 时间:
2020-05-23 21:56:01
阅读次数:
93
变量的内在机制 Go语言中的变量是分为两部分的: 类型信息:预先定义好的元信息。 值信息:程序运行过程中可动态变化的。 反射介绍 反射是指在程序运行期对程序本身进行访问和修改的能力。程序在编译时,变量被转换为内存地址,变量名不会被编译器写入到可执行部分。在运行程序时,程序无法获取自身的信息。 支持反 ...
分类:
编程语言 时间:
2020-05-23 20:17:44
阅读次数:
68
维护区间加法 https://www.luogu.com.cn/problem/P3374 #include<bits/stdc++.h> using namespace std; typedef long long ll; const int maxN=500000; struct Node{ i ...
分类:
其他好文 时间:
2020-05-23 18:04:04
阅读次数:
40
2019年5月24日 开始对于react的学习 http://huziketang.mangojuice.top/books/react/lesson46 开始提要:reactjs是不依赖nodejs的,但是webpack是依赖的,所以我们react开发也要安装node环境!安装node的教程我要另 ...
分类:
其他好文 时间:
2020-05-23 13:22:12
阅读次数:
41
题目来源:LeetCode739 1 // 链表节点 2 typedef struct Node { 3 int value; // 气温 4 int index; // 下标 5 struct Node *next; 6 } pNode; 7 8 // 栈 9 typedef struct MyS ...
分类:
其他好文 时间:
2020-05-23 11:37:58
阅读次数:
44
new 初始化:括号内加初始值 int *pi = new int (6) // C++98 struct where {double x; double y; double z}; where * one = new where {2.5, 5.3, 7.2}; // C++11 以下为定位 ne ...
分类:
编程语言 时间:
2020-05-22 21:30:15
阅读次数:
116
我的LeetCode:https://leetcode cn.com/u/ituring/ 我的LeetCode刷题源码[GitHub]:https://github.com/izhoujie/Algorithmcii LeetCode 面试题26. 树的子结构 题目 输入两棵二叉树A和B,判断B是 ...
分类:
其他好文 时间:
2020-05-22 19:41:00
阅读次数:
40
最多存储2^32-1个元素,支持取交集、并集、差集 内部编码: 整数集合(intset) typedef struct intset{ uint32_t encoding; 编码类型(int8_t, int16_t...) uint32_t length; 元素个数 int8_t contents[ ...
分类:
其他好文 时间:
2020-05-22 16:54:32
阅读次数:
63
这个题就是一个01背包的模板题; 代码: 1 #include<iostream> 2 using namespace std; 3 struct zkw{ 4 int w; 5 int c; 6 }; 7 zkw a[3500]; 8 int f[2200]; 9 int main() 10 { ...
分类:
其他好文 时间:
2020-05-22 15:33:10
阅读次数:
52
1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <ctype.h> 4 #include <string.h> 5 typedef int ElemType; 6 typedef struct item{ 7 ElemType items; ...
分类:
编程语言 时间:
2020-05-22 13:08:35
阅读次数:
49