英文原文:11 Laws of The System Thinking in Software Development
“我会更加努力地工作” —— 一匹名叫Boxer的马(出自乔治?奥威尔的《动物农庄》)
彼得?圣吉在其著作《第五项修炼》中提到的系统思维定律同样适用于软件开发。
1. 今日的问题源于昨日的解决方案(Today’s problems come from yes...
分类:
其他好文 时间:
2015-06-26 21:10:31
阅读次数:
97
https://leetcode.com/problems/summary-ranges/Given a sorted integer array without duplicates, return the summary of its ranges.For example, given[0,1,...
分类:
其他好文 时间:
2015-06-26 12:41:04
阅读次数:
86
Sqrt(x)Implementint sqrt(int x).Compute and return the square root ofx.https://leetcode.com/problems/sqrtx/对于数学早就还给老师的我,开方真是跪了。查了一下是牛顿迭代法(什么鬼。先随便猜一个数,...
分类:
编程语言 时间:
2015-06-26 00:19:40
阅读次数:
283
https://leetcode.com/problems/rectangle-area/Find the total area covered by tworectilinearrectangles in a2Dplane.Each rectangle is defined by its bott...
分类:
其他好文 时间:
2015-06-26 00:10:10
阅读次数:
146
Pow(x, n)Implement pow(x,n).https://leetcode.com/problems/powx-n/注意x和n都可能是负数。递归求解,比如求3的4次方,可以拆成3的2次方相乘;3的5次就是3^2相乘再乘2。 1 /** 2 * @param {number} x 3 ....
分类:
编程语言 时间:
2015-06-26 00:10:03
阅读次数:
171
https://leetcode.com/problems/course-schedule-ii/There are a total ofncourses you have to take, labeled from0ton - 1.Some courses may have prerequisit...
分类:
其他好文 时间:
2015-06-25 15:30:13
阅读次数:
110
https://leetcode.com/problems/course-schedule/There are a total ofncourses you have to take, labeled from0ton - 1.Some courses may have prerequisites,...
分类:
其他好文 时间:
2015-06-25 15:23:01
阅读次数:
115
New techniques learnt: Trie can be used for some XOR problems. The basic idea: we build a MSB->LSB prefix Trie of all numbers; then query greedily: fi...
分类:
其他好文 时间:
2015-06-25 13:47:32
阅读次数:
116
原题地址:https://leetcode.com/problems/best-time-to-buy-and-sell-stock/
内容都在代码和注释里,就不罗嗦了。
class Solution {
public:
int maxProfit(vector& prices) {
/*
这类题目已经遇到过几次,都是要在一维数组中...
分类:
其他好文 时间:
2015-06-25 09:07:05
阅读次数:
121
Description:https://leetcode.com/problems/rectangle-area/public class Solution { public int computeArea(int A, int B, int C, int D, int E, int F, i...
分类:
其他好文 时间:
2015-06-24 01:57:19
阅读次数:
124