//创建二层聚合接口,并进入二层聚合接口视图 [switch] interface bridge-aggregation interface-number //进入二层以太网端口视图 [switch] interface interface-type interface-number //将二层以太 ...
分类:
其他好文 时间:
2020-07-03 12:46:11
阅读次数:
90
题目:一个整型数组里除了两个数字之外,其他的数字都出现了两次。请写程序找出这两个只出现一次的数字。要求时间复杂度是O(n),空间复杂度是O(1)。 分析:这是一道很新颖的关于位运算的面试题。 首先我们考虑这个问题的一个简单版本:一个数组里除了一个数字之外,其他的数字都出现了两次。请写程序找出这个只出 ...
分类:
编程语言 时间:
2020-07-03 12:31:53
阅读次数:
61
class SingleDemo { public static SingleDemo instance = null; private SingleDemo() { System.out.println(Thread.currentThread().getName() + "\t 我是Single ...
分类:
编程语言 时间:
2020-07-03 12:18:54
阅读次数:
68
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
1. https://www.boost.org 下载boost源码 boost_1_73_0.zip解压。 2.准备编译前的配置,打开vs2017 x86 CMD工具,进入目录boost_1_73_0\,执行bootstrap.bat,等待初始化完毕, 会生成b2.exe和bjam.exe两个程序 ...
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
总所周知,传参 或 使用变量给另一个变量赋值时,如果是基本数据类型(null,number,undefined,string,boolean)则是直接复制,但是如果是非基本数据类型(array,function,object等),则是复制对应的引用。 浅拷贝指的是只会复制第一层对象,但是当对象是引用 ...
分类:
其他好文 时间:
2020-07-03 01:18:19
阅读次数:
85
1、如何获取列表中第二大的值? #先去重,在排序,取值 lst = [1,2,3,4,5,5,5,5,5,5,5,5] setvar = set(lst) # 列表.sort 类型有局限性,只能是列表,基于原有列表进行修改 # sorted 容器类型数据皆可以,返回新列表 lst = sorted( ...
分类:
编程语言 时间:
2020-07-03 01:16:47
阅读次数:
81
数组中的重复数字 题目描述 Java代码 、import java.util.*; public class Solution { // Parameters: // numbers: an array of integers // length: the length of array numbe ...
分类:
编程语言 时间:
2020-07-03 01:09:01
阅读次数:
81