码迷,mamicode.com
首页 >  
搜索关键字:should be repaired    ( 4956个结果
Contains Duplicate
//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
LeetCode 137:Single Number II
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
LeetCode 4: Median of Two Sorted Arrays
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
LeetCode 10: Regular Expression Matching
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
CentOS 7: Install vsftpd
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
[LintCode] Subarray Sum & Subarray Sum II
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
leetcode_Contains Duplicate_easy
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
URAL1091---Tmutarakan Exams(dp)
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
Single Number II -- leetcode
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!