线性表 由同类型数据元素构成有序序列的线性结构 表中元素个数称为线性表的长度 线性表没有元素时,称为空表 表起始位置称表头,表结束位置称表尾 线性表的抽象数据类型描述 线性表是n个元素构成的有序序列 性表基本操作 List MakeEmpty() 初始化一个空线性表L List MakeEmpty( ...
分类:
其他好文 时间:
2020-07-11 11:19:42
阅读次数:
76
引子 虽然现在docker、k8s大行其道,我们的世界似乎已经被容器主宰,但是有一些程序还是不适合放到docker里面跑,比如node-exporter、自己写的某些程序,但是这些程序又是必须的, 如果每次重启机器都需要自己去启动一次那真的是太累了,所以这些程序需要自启动。 操作步骤 检查系统目录/ ...
分类:
系统相关 时间:
2020-07-11 11:13:08
阅读次数:
104
Docker 安装 ElasticSearch 拉取镜像 # 最新版本7,8.0 docker pull elasticsearch:7.8.0 启动集群 # 基本启动命令 # -e "discovery.type=single-node" \ 单节点集群 # -e ES_JAVA_OPTS="-X ...
分类:
其他好文 时间:
2020-07-11 00:25:21
阅读次数:
104
# pip install pyexecjs # 一node.js为引擎 # 检测运行环境 import execjs print(execjs.get().name) 最简单的代码案例 使用eval执行js代码 import execjs e = execjs.eval('a=new Array( ...
分类:
编程语言 时间:
2020-07-10 22:39:45
阅读次数:
81
链表: 链表开头: struct list{ int data; struct list *next;};typedef struct list single; 创建链表节点的流程: (1)给当前的每个节点的数据结构配置定量的空间大小 struct list *node = malloc(sizeo ...
分类:
其他好文 时间:
2020-07-10 22:36:08
阅读次数:
65
1.确定本地Node.js和npm版本 确定Node.js版本node -v,确定npm版本npm -v,满足生产要求 2.做下井字棋的功能 ...
分类:
其他好文 时间:
2020-07-10 21:20:36
阅读次数:
97
Given an n-ary tree, return the level order traversal of its nodes' values. Nary-Tree input serialization is represented in their level order traversa ...
分类:
其他好文 时间:
2020-07-10 11:20:42
阅读次数:
63
Maximum Width of Binary Tree (M) 题目 Given a binary tree, write a function to get the maximum width of the given tree. The width of a tree is the maxim ...
分类:
其他好文 时间:
2020-07-10 10:11:00
阅读次数:
54
1.节点属性设置 node.master:true #指定该节点是否有资格被选举成为node,默认是true,es是默认集群中的第一台机器为master,如果这台机挂了就会重新选举master。 node.data:true #指定该节点是否存储数据,默认为true。 #以上两个都设置为false则 ...
分类:
其他好文 时间:
2020-07-10 09:54:26
阅读次数:
89