在local库中不仅有主从日志 oplog集合,还有一个集合用于记录主从配置信息 system.replset: > use local > show collections > db.system.replset.find() rs1:PRIMARY> use localuse local swi ...
分类:
数据库 时间:
2016-07-23 22:56:07
阅读次数:
431
LINUX下findgrepsedawk的常见基本用法特点只为让自己具有更高的水准,这就开始了长达6个月的小白进阶路!这几天学习linux基础命令有点犯蒙,尤其是对文件查找这块。所有我想把一些我觉得常用的实用的参数项总结下来,大神勿喷哈。。。不到之处请大家指教,小女子在此谢过了。一..
分类:
系统相关 时间:
2016-07-23 21:36:40
阅读次数:
302
LINUX下findgrepsedawk的常见基本用法特点只为让自己具有更高的水准,这就开始了长达6个月的小白进阶路!这几天学习linux基础命令有点犯蒙,尤其是对文件查找这块。所有我想把一些我觉得常用的实用的参数项总结下来,大神勿喷哈。。。不到之处请大家指教,小女子在此谢过了。一..
分类:
系统相关 时间:
2016-07-23 21:34:54
阅读次数:
316
列出所有数据库 show dbs 使用/新建 use 数据库 查看在哪个数据库里 db 插入/db.一个集合名字,集合自动创建。 db.student.insert({"name":"xiaoming"}); 查看集合 show collections 查找全部 db.student.find();... ...
分类:
数据库 时间:
2016-07-23 21:08:45
阅读次数:
176
Given an circular integer array (the next element of the last element is the first element), find a continuous subarray in it, where the sum of number ...
分类:
其他好文 时间:
2016-07-23 18:12:07
阅读次数:
178
并查集初步应用,还不是很熟练。并查集两个主要函数:Union和Find。Union通常把两条不连通的支路使其连通;Find用来查找根节点,必要的要进行路径压缩。 大致题意:0号学生是默认的感染者,在M组团体中,如果出现了0号,则整个团体都是感染者。 样例: Sample Input 100 4 // ...
分类:
其他好文 时间:
2016-07-23 18:04:19
阅读次数:
86
16. 3Sum Closest 16. 3Sum Closest Total Accepted: 85780 Total Submissions: 289017 Difficulty: Medium Given an array S of n integers, find three intege ...
分类:
其他好文 时间:
2016-07-23 16:32:58
阅读次数:
101
--find SQL login with blank passwords select name,type_desc,create_date from sys.sql_logins where pwdcompare('', password_hash) = 1 --find SQL login w ...
分类:
数据库 时间:
2016-07-23 15:17:29
阅读次数:
452
Description Give you three sequences of numbers A, B, C, then we give you a number X. Now you need to calculate if you can find the three numbers Ai, ...
分类:
其他好文 时间:
2016-07-23 14:58:57
阅读次数:
154
373. Find K Pairs with Smallest Sums You are given two integer arrays nums1 and nums2 sorted in ascending order and an integer k. Define a pair (u,v) ...
分类:
其他好文 时间:
2016-07-23 13:37:16
阅读次数:
168