码迷,mamicode.com
首页 >  
搜索关键字:should be repaired    ( 4956个结果
229. Majority Element II
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
1.Learning should start with a good platform.
写博缘由: 决定重新认真学python了,日后将会在这里记录我的python之旅,记录成长的点点滴滴。 一.搭建一个高效的开发平台 python版本的选择:当前生产环境下使用最多的无疑还是python2.7.x版本,但在2018年python将不再维护2.x系列并全全转型为3.x,因此学习pytho ...
分类:其他好文   时间:2016-10-21 01:16:09    阅读次数:161
mongodb 安装后 出现警告:** WARNING: soft rlimits too low. Number of files is 256, should be at least 1000
警告问题:当前mongodb 支持的最大文件数有256个,但是推荐至少1024个。 解决办法: 1、关闭现在打开的mongodb 终端窗口 2、重新打开终端并运行一下命令: sudo launchctl limit maxfiles 65536 65536 sudo launchctl limit ...
分类:数据库   时间:2016-10-20 07:40:00    阅读次数:987
leetcode24,交换链表相邻的节点
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
LRU Cache
题意: 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
leetcode21
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分片丢失分片索引
mongo分片备份后删除分片并重建分片索引,结果常遇到以下情况:shard01上的集合创建了分片索引,而shard02上却没有创建分片索引,导致chunk只分布在shard01分片上。具体报错信息:"errmsg":"abortingmigration,shardismissing1indexesandcollectionisnotempty.Non-trivialindex..
分类:其他好文   时间:2016-10-18 23:16:52    阅读次数:596
Leetcode - 412. Fizz Buzz
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
https和http 调用过程中请求头 referrer 获取不到的问题
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
[LeetCode] Fizz Buzz 嘶嘶嗡嗡
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!