Given an integer array of size n, find all elements that appear more than ? n/3 ? times. The algorithm should run in linear time and in O(1) space. Hi ...
分类:
其他好文 时间:
2016-10-22 14:07:12
阅读次数:
143
写博缘由: 决定重新认真学python了,日后将会在这里记录我的python之旅,记录成长的点点滴滴。 一.搭建一个高效的开发平台 python版本的选择:当前生产环境下使用最多的无疑还是python2.7.x版本,但在2018年python将不再维护2.x系列并全全转型为3.x,因此学习pytho ...
分类:
其他好文 时间:
2016-10-21 01:16:09
阅读次数:
161
警告问题:当前mongodb 支持的最大文件数有256个,但是推荐至少1024个。 解决办法: 1、关闭现在打开的mongodb 终端窗口 2、重新打开终端并运行一下命令: sudo launchctl limit maxfiles 65536 65536 sudo launchctl limit ...
分类:
数据库 时间:
2016-10-20 07:40:00
阅读次数:
987
Given a linked list, swap every two adjacent nodes and return its head. For example, Given 1->2->3->4, you should return the list as 2->1->4->3. Your ...
分类:
其他好文 时间:
2016-10-20 07:23:28
阅读次数:
279
题意: Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set. get(key) - Get ...
分类:
系统相关 时间:
2016-10-20 00:25:26
阅读次数:
272
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. Subscrib ...
分类:
其他好文 时间:
2016-10-19 01:53:22
阅读次数:
157
mongo分片备份后删除分片并重建分片索引,结果常遇到以下情况:shard01上的集合创建了分片索引,而shard02上却没有创建分片索引,导致chunk只分布在shard01分片上。具体报错信息:"errmsg":"abortingmigration,shardismissing1indexesandcollectionisnotempty.Non-trivialindex..
分类:
其他好文 时间:
2016-10-18 23:16:52
阅读次数:
596
Write a program that outputs the string representation of numbers from 1 to n. But for multiples of three it should output “Fizz” instead of the numbe ...
分类:
其他好文 时间:
2016-10-18 22:37:19
阅读次数:
127
HTTP协议规定:Clients SHOULD NOT include a Referer header field in a (non-secure) HTTP request if the referring page was transferred with a secure protocol... ...
分类:
Web程序 时间:
2016-10-17 13:43:45
阅读次数:
173
Write a program that outputs the string representation of numbers from 1 to n. But for multiples of three it should output “Fizz” instead of the numbe ...
分类:
其他好文 时间:
2016-10-16 14:13:59
阅读次数:
158