题目:一个整型数组里除了两个数字之外,其他的数字都出现了两次。请写程序找出这两个只出现一次的数字。要求时间复杂度是O(n),空间复杂度是O(1)。 分析:这是一道很新颖的关于位运算的面试题。 首先我们考虑这个问题的一个简单版本:一个数组里除了一个数字之外,其他的数字都出现了两次。请写程序找出这个只出 ...
分类:
编程语言 时间:
2020-07-03 12:31:53
阅读次数:
61
Install-Package Dapper -Version 1.50.5 Install-Package Oracle.ManagedDataAccess.Core -Version 2.12.0-beta2 appsettings.json "ConnectionStrings": { "Em ...
分类:
Web程序 时间:
2020-07-03 12:31:38
阅读次数:
68
一、引包(微信开发工具包) <dependency> <groupId>com.github.binarywang</groupId> <artifactId>weixin-java-miniapp</artifactId> <version>3.5.0</version> </dependency ...
分类:
微信 时间:
2020-07-03 10:56:48
阅读次数:
298
Springboot 版本 2.0.3.RELEASE github : https://github.com/szjomin/SpringBootZookeeperConfig 一、java pom 文件 - properties <spring-cloud.version>Finchley.RE ...
分类:
编程语言 时间:
2020-07-03 10:48:05
阅读次数:
254
Count the number of segments in a string, where a segment is defined to be a contiguous sequence of non-space characters. Please note that the string ...
分类:
其他好文 时间:
2020-07-03 10:41:10
阅读次数:
59
挺久没有登录的 oracle 数据库,因为公司要求加固密码,登录后修改失败 1、启动数据库的同时启动控制文件、数据文件,提示:cannot mount database in EXCLUSIVE mode 2、启动数据库的同时启动控制文件、不启动数据文件,提示:database not mounte ...
分类:
数据库 时间:
2020-07-03 10:36:46
阅读次数:
132
前一篇已经将前端的服务写好了,现在记录一下后台的(很简单主要目的就是记录vue的学习,这里没有登录拦截有时间会更新做一个有登录拦截) 首先要使用idea创建一个项目Vue-springboot项目目录如下 依赖包: <?xml version="1.0" encoding="UTF-8"?> <pr ...
分类:
编程语言 时间:
2020-07-03 10:23:37
阅读次数:
111
Maximum Subarray (E) 题目 Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and retur ...
分类:
其他好文 时间:
2020-07-03 09:14:00
阅读次数:
76
Eureka Client注册到Eureka Server 注册到Eureka Server主要是三个: maven依赖 <!--eureka client--> <dependency> <groupId>org.springframework.cloud</groupId> <artifactI ...
分类:
其他好文 时间:
2020-07-03 09:13:42
阅读次数:
51
总所周知,传参 或 使用变量给另一个变量赋值时,如果是基本数据类型(null,number,undefined,string,boolean)则是直接复制,但是如果是非基本数据类型(array,function,object等),则是复制对应的引用。 浅拷贝指的是只会复制第一层对象,但是当对象是引用 ...
分类:
其他好文 时间:
2020-07-03 01:18:19
阅读次数:
85