The 3n + 1 problem
Background
Problems in Computer Science are often classified as belonging to a certain class of problems (e.g., NP, Unsolvable, Recursive). In this problem you will b...
分类:
其他好文 时间:
2015-04-20 18:30:43
阅读次数:
175
https://leetcode.com/problems/two-sum/ Given an array of integers, find two numbers such that they add up to a specific target number. The function tw...
分类:
其他好文 时间:
2015-04-20 18:20:27
阅读次数:
95
IT英语1-计算机算法常用术语中英对照Data Structures 基本数据结构Dictionaries 字典Priority Queues 堆Graph Data Structures 图Set Data Structures 集合Kd-Trees 线段树Numerical Problems 数...
分类:
编程语言 时间:
2015-04-20 12:49:18
阅读次数:
131
题目地址:https://leetcode.com/problems/word-break-ii/题目解析:看到题目的第一思路是采用递归暴力解法,每找到一个单词将单词添加到返回的结果集中,并将查找的开始位置后移直到字符串的结尾。题目解答:import java.util.HashSet;import...
分类:
其他好文 时间:
2015-04-20 01:50:07
阅读次数:
167
Distinguish Business Exceptions from TechnicalDan Bergh JohnssonTHERE ARE BASiCALLY TWO REASONS that things go wrong at runtime: technical problems that prevent us from using the application and busine...
分类:
其他好文 时间:
2015-04-19 13:14:32
阅读次数:
109
题目地址:https://leetcode.com/problems/bitwise-and-of-numbers-range/题目解析:参考https://leetcode.com/problems/number-of-1-bits/,我们知道n&n-1为n和n-1两者左边相同的部分,那么容易得到...
分类:
其他好文 时间:
2015-04-19 01:05:03
阅读次数:
316
https://leetcode.com/problems/decode-ways/A message containing letters fromA-Zis being decoded to numbers using the following mapping:'A' -> 1'B' -> 2...
分类:
其他好文 时间:
2015-04-19 01:04:45
阅读次数:
122
https://leetcode.com/problems/unique-binary-search-trees-ii/Givenn, generate all structurally uniqueBST's(binary search trees) that store values 1...n...
分类:
其他好文 时间:
2015-04-18 23:18:39
阅读次数:
122
题目:Implement pow(x,n).链接:http://leetcode.com/problems/powx-n/题解:测试:
分类:
其他好文 时间:
2015-04-18 01:07:01
阅读次数:
117
题目:Divide two integers without using multiplication, division and mod operator.If it is overflow, return MAX_INT.链接:http://leetcode.com/problems/divid...
分类:
其他好文 时间:
2015-04-17 17:41:00
阅读次数:
90