//Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the a...
分类:
其他好文 时间:
2015-06-02 13:17:34
阅读次数:
139
Given an array of integers, every element appears three times except for one. Find that single one.
Note:
Your algorithm should have a linear runtime complexity. Could you implement it without using...
分类:
其他好文 时间:
2015-06-02 09:27:36
阅读次数:
118
There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n))
代码如下:
class Solutio...
分类:
其他好文 时间:
2015-06-02 09:26:44
阅读次数:
103
Implement regular expression matching with support for '.' and
'*'.
'.' Matches any single character.
'*' Matches zero or more of the preceding element.
The matching should cover the entire inpu...
分类:
其他好文 时间:
2015-06-02 00:32:05
阅读次数:
121
Install vsftpdAll commands should be run with ‘root’ user. Run the following command in terminal to install vsftpd package:yum install vsftpd ftp -yCo...
分类:
其他好文 时间:
2015-06-01 18:27:58
阅读次数:
106
Subarray SumGiven an integer array, find a subarray where the sum of numbers iszero. Your code should return the index of the first number and the ind...
分类:
其他好文 时间:
2015-06-01 13:00:46
阅读次数:
92
Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the array, and it should return false if every element is...
分类:
其他好文 时间:
2015-06-01 09:39:41
阅读次数:
96
01.Real Programmers don't write specs -- users should consider themselves lucky to get any programs at all and take what they get.(真正的程序员不循规蹈矩,他们对用户说:...
分类:
其他好文 时间:
2015-05-31 18:17:42
阅读次数:
154
University of New Tmutarakan trains the first-class specialists in mental arithmetic. To enter the University you should master arithmetic perfectly. One of the entrance exams at the Divisibility Depar...
分类:
其他好文 时间:
2015-05-31 14:05:25
阅读次数:
221
Given an array of integers, every element appears three times except for one. Find that single one.
Note:
Your algorithm should have a linear runtime complexity. Could you implement it without usi...
分类:
其他好文 时间:
2015-05-31 12:31:13
阅读次数:
118