Problem Description There are N villages, which are numbered from 1 to N, and you should build some roads such that every two villages can connect to ... ...
分类:
其他好文 时间:
2016-07-07 00:56:04
阅读次数:
146
Given two strings, find the longest common subsequence (LCS). Your code should return the length of LCS. Example Given two strings, find the longest c ...
分类:
其他好文 时间:
2016-07-06 13:14:34
阅读次数:
115
Maximum Subarray Given an array of integers, find a contiguous subarray which has the largest sum. Notice The subarray should contain at least one num ...
分类:
其他好文 时间:
2016-07-06 11:54:26
阅读次数:
242
For a given source string and a target string, you should output the first index(from 0) of target string in source string. If target does not exist i ...
分类:
其他好文 时间:
2016-07-06 09:54:02
阅读次数:
123
Write a function that add two numbers A and B. You should not use + or any arithmetic operators. 分析: 典型的Bit Operation. ...
分类:
其他好文 时间:
2016-07-06 09:51:45
阅读次数:
150
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-07-05 18:32:14
阅读次数:
137
Contribution Guide Issue Tracker You can find outstanding issues on the GitHub Issue Tracker. Pull Requests Each pull request should contain only one ...
分类:
其他好文 时间:
2016-07-05 12:22:28
阅读次数:
125
Encryption Configuration Basic Usage Encrypting a value Decrypting a value Configuration Before using Nova's encrypter, you should set the ENCRYPT_KEY ...
分类:
其他好文 时间:
2016-07-05 12:05:14
阅读次数:
163
题目描述: 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. 解题 ...
分类:
其他好文 时间:
2016-07-05 01:10:38
阅读次数:
216
Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two n ...
分类:
其他好文 时间:
2016-07-04 07:38:35
阅读次数:
120