码迷,mamicode.com
首页 >  
搜索关键字:single number    ( 31458个结果
H3C交换机端口聚合
//创建二层聚合接口,并进入二层聚合接口视图 [switch] interface bridge-aggregation interface-number //进入二层以太网端口视图 [switch] interface interface-type interface-number //将二层以太 ...
分类:其他好文   时间:2020-07-03 12:46:11    阅读次数:90
面试题:找出数组中只出现一次的2个数(异或的巧妙应用)(出现3次)
题目:一个整型数组里除了两个数字之外,其他的数字都出现了两次。请写程序找出这两个只出现一次的数字。要求时间复杂度是O(n),空间复杂度是O(1)。 分析:这是一道很新颖的关于位运算的面试题。 首先我们考虑这个问题的一个简单版本:一个数组里除了一个数字之外,其他的数字都出现了两次。请写程序找出这个只出 ...
分类:编程语言   时间:2020-07-03 12:31:53    阅读次数:61
多线程下单例模式示例(synchronized)
class SingleDemo { public static SingleDemo instance = null; private SingleDemo() { System.out.println(Thread.currentThread().getName() + "\t 我是Single ...
分类:编程语言   时间:2020-07-03 12:18:54    阅读次数:68
434. Number of Segments in a String
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 数据库的 sys 账号密码,alter user sys identified by Aa123456@#_# * ERROR at line 1: ORA-01034: ORACLE not available Process ID: 0 Session ID: 0 Serial number: 0
挺久没有登录的 oracle 数据库,因为公司要求加固密码,登录后修改失败 1、启动数据库的同时启动控制文件、数据文件,提示:cannot mount database in EXCLUSIVE mode 2、启动数据库的同时启动控制文件、不启动数据文件,提示:database not mounte ...
分类:数据库   时间:2020-07-03 10:36:46    阅读次数:132
windows编译boost
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两个程序 ...
分类:Windows程序   时间:2020-07-03 10:29:25    阅读次数:73
0053. Maximum Subarray (E)
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
Python进阶题
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
31458条   上一页 1 ... 86 87 88 89 90 ... 3146 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!