Given an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), prove that at least one duplicate number must exist. ...
分类:
其他好文 时间:
2018-09-07 10:58:47
阅读次数:
199
1. kafka介绍 1.1. 主要功能 根据官网的介绍,ApacheKafka®是一个分布式流媒体平台,它主要有3种功能: 1:It lets you publish and subscribe to streams of records.发布和订阅消息流,这个功能类似于消息队列,这也是kafka ...
分类:
其他好文 时间:
2018-09-06 16:15:10
阅读次数:
212
导致错误的原因: 我在建表的sql文件中,重新定义了一个自增表("id serial primark key"),但是sql文件中还有insert语句初始化数据,这是id自增字段就不是从1开始, 这时你在添加数据时就会出现标题中问题 解决办法: 在创建好表后,执行下面一句话 SELECT setva ...
分类:
数据库 时间:
2018-09-06 14:51:35
阅读次数:
587
说明: spark --version : 2.2.0 我有两个json文件,分别是emp和dept: emp内容如下: dept内容如下: 现在我需要通过sparksql将两个文件加载进来并做join,最后将结果保存到本地 下面是操作步骤: 1、初始化配置 2、将两个json文件加载进来 3、分别 ...
分类:
数据库 时间:
2018-09-05 08:53:42
阅读次数:
587
Given a set of distinct integers, nums, return all possible subsets (the power set). Note: The solution set must not contain duplicate subsets. Exampl ...
分类:
其他好文 时间:
2018-09-04 23:23:34
阅读次数:
213
给定一个整数数组,判断是否存在重复元素。 如果任何值在数组中出现至少两次,函数返回 true。如果数组中每个元素都不相同,则返回 false。 示例 1: 示例 2: 示例 3: ...
分类:
其他好文 时间:
2018-09-03 02:31:45
阅读次数:
138
添加主键mysql>altertableinfoaddprimarykey(id);QueryOK,0rowsaffected(0.07sec)Records:0Duplicates:0Warnings:0mysql>descinfo;#查看主键+--------+--------------+------+-----+---------+-------+|Field|Type|Nul
分类:
数据库 时间:
2018-09-02 20:53:54
阅读次数:
204
手册中的基本命令: CONFIGURE TOOLING Configure user information for all local repositories Sets the name you want attached to your commit transactions Sets the ...
分类:
其他好文 时间:
2018-09-02 20:18:20
阅读次数:
163
有些词可能共用一些缩写。带星号的缩写或词来源于PeopleSoft标准。 The following standard word abbreviations should be used in naming records, fields, and SQRs: ...
分类:
其他好文 时间:
2018-09-01 12:20:28
阅读次数:
176
针对es5之前的非严格模式,es5之后的严格模式所拥有的特性,并且如何开启等知识点。 ...
分类:
Web程序 时间:
2018-08-31 00:33:07
阅读次数:
375