Palmia国有一条横贯东西的大河,河有笔直的南北两岸,岸上各有位置各不相同的N个城市。 北岸的每个城市有且仅有一个友好城市在南岸,而且不同城市的友好城市不相同。 每对友好城市都向政府申请在河上开辟一条直线航道连接两个城市,但是由于河上雾太大,政府决定避免任意两条航道交叉,以避免事故。 编程帮助政府 ...
分类:
其他好文 时间:
2019-10-02 14:45:50
阅读次数:
68
3.1 创建文件cd bin 跳转到bin文件夹里touch start-kafka-cluster.sh --新建一键启动文件touch stop-kafka-cluster.sh --新建一键停止文件3.2 编写startstart-kafka-cluster.sh内容:#!/bin/bashb ...
分类:
其他好文 时间:
2019-10-02 12:53:31
阅读次数:
90
Acm is a clever boy, and he developed a new game form the old Stone-Forfex-Cloth game. In this game, a number of children sit in a circle, each one sh ...
分类:
其他好文 时间:
2019-10-02 10:47:20
阅读次数:
96
1.介绍 SQLAlchemy是一个基于Python实现的ORM框架。该框架建立在 DB API之上,使用关系对象映射进行数据库操作,简言之便是:将类和对象转换成SQL,然后使用数据API执行SQL并获取执行结果。 组成部分: SQLAlchemy本身无法操作数据库,其必须以来pymsql等第三方插 ...
分类:
数据库 时间:
2019-10-01 20:39:31
阅读次数:
113
目录 一、环境准备 二、软件安装 三、部署master节点 四、部署node节点 五、集群状态检测 一、环境准备 二、软件安装 三、部署master节点 四、部署node节点 五、集群状态检测 一、环境准备 所有节点以下操作: 1、设置各主机的主机名,管理节点为k8s-master 2、编辑/etc ...
分类:
其他好文 时间:
2019-09-30 19:48:36
阅读次数:
96
LeetCode Weekly 156 5205. "独一无二的出现次数" 给你一个整数数组 arr,请你帮忙统计数组中每个数的出现次数。 如果每个数的出现次数都是独一无二的,就返回 true;否则返回 false。 示例 1: 输入:arr = [1,2,2,1,1,3] 输出:true 解释:在 ...
分类:
其他好文 时间:
2019-09-30 18:27:26
阅读次数:
93
#include #include #include #include #include #define ONE_SECOND 1000000 #define RANGE 10 #define PERIOD 2 #define NUM_THREADS 4 typedef struct { int *... ...
分类:
编程语言 时间:
2019-09-30 16:21:58
阅读次数:
82
致敬hello world! print("hello world!") print("hello again") print("this is the 3rd line, \n", "and this is also the 3rd line") print("this is the 3rd li ...
分类:
编程语言 时间:
2019-09-30 13:01:22
阅读次数:
92
我的方法:新初始化一个链表头,比较两个链表当前节点的大小,然后连接到该链表中。遍历两个链表直到null为止。 public ListNode merge(ListNode first, ListNode second){ //注意这个细节 ListNode head = new ListNode(0 ...
分类:
编程语言 时间:
2019-09-30 12:34:00
阅读次数:
101
Spring Cloud Gateway注册到服务器中心(Consul) 准备环境 启动Consul(./consul agent dev)作为服务中心,默认是8500端口,然后启动spring cloud provider(9001端口)和spring cloud provider second( ...
分类:
编程语言 时间:
2019-09-30 09:28:33
阅读次数:
493