题目: Given a string array words, find the maximum value of length(word[i]) * length(word[j]) where the two words do not share common letters. You may a
分类:
其他好文 时间:
2016-03-21 01:35:31
阅读次数:
202
1、BusyBox简介 BusyBox 是很多标准 Linux 工具的一个单个可执行实现。BusyBox 包含了一些简单的工具,例如 cat 和 echo,还包含了一些更大、更复杂的工具,例如 grep、find、mount 以及 telnet;有些人将 BusyBox 称为 Linux 工具里的“
分类:
其他好文 时间:
2016-03-21 00:11:14
阅读次数:
352
Suppose a sorted array is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2). Find the minimum element.
分类:
其他好文 时间:
2016-03-20 16:10:02
阅读次数:
175
1. 索引数组字段 创建和使用跟普通字段的索引一样。 2. 索引子文档字段: 创建索引: db.users.ensureIndex({"address.city":1,"address.state":1,"address.pincode":1}) 使用索引查询: db.users.find({"ad
分类:
数据库 时间:
2016-03-20 14:41:45
阅读次数:
186
Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.) You have
分类:
其他好文 时间:
2016-03-20 14:41:10
阅读次数:
169
A case about business secret the suspect took lots of photos and screenshots from BOM, RD papers... We have to conduct a keyword search to find out wh
分类:
其他好文 时间:
2016-03-20 14:37:59
阅读次数:
216
Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers.
分类:
其他好文 时间:
2016-03-20 14:36:33
阅读次数:
91
MongoDB 查询分析可以确保我们建立的索引是否有效,是查询语句性能分析的重要工具。MongoDB 查询分析常用函数有:explain() 和 hint()。 1. explain(): 提供查询信息,使用索引及查询统计,有利于我们对索引的优化。 使用示例: db.users.find({gend
分类:
数据库 时间:
2016-03-20 14:26:29
阅读次数:
227
在第二章里,作者提出了三个问题,然后慢慢引出对应的算法实现。 1 Binary search 二分查找 Given a sequential file that contain at most 4x109 32-bit integers in random order, find a 32-bit
分类:
编程语言 时间:
2016-03-20 07:05:41
阅读次数:
232
Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of
分类:
其他好文 时间:
2016-03-20 00:44:53
阅读次数:
206