Interrupts are an important part of embedded systems. Consequently, many compiler vendors offer an extensionto standard C to support interrupts. Typic...
分类:
其他好文 时间:
2015-01-15 10:42:10
阅读次数:
165
Say you have an array for which the ith element is the price of a given stock on day i.
Design an algorithm to find the maximum profit. You may complete as many transactions as you like (ie, buy on...
分类:
其他好文 时间:
2015-01-15 09:27:56
阅读次数:
187
Givenn, how many structurally uniqueBST's(binary search trees) that store values 1...n?For example,Givenn= 3, there are a total of 5 unique BST's 1 .....
分类:
其他好文 时间:
2015-01-14 22:37:54
阅读次数:
241
This interesting problem has been featured in the famous Greplin
programming challenge, and is asked quite often in the interviews. Why? Because this problem can be attacked in so many ways. There a...
分类:
其他好文 时间:
2015-01-14 15:40:39
阅读次数:
291
uva 111 History Grading
Many problems in Computer Science involve maximizing some measure according to constraints.
Consider a history exam in which students are asked to put several histori...
分类:
其他好文 时间:
2015-01-13 23:22:43
阅读次数:
513
题目的意思是要将一个字符串转换成数字
这个题目的重点是要处理 各种各样的输入情况
在题目下面有一大段英文:
Requirements for atoi:
The function first discards as many whitespace characters as necessary until the first non-whitespace character is...
分类:
其他好文 时间:
2015-01-13 23:22:36
阅读次数:
428
Follow up for "Unique Paths":Now consider if some obstacles are added to the grids. How many unique paths would there be?An obstacle and empty space i...
分类:
其他好文 时间:
2015-01-13 23:09:55
阅读次数:
151
https://oj.leetcode.com/problems/unique-binary-search-trees/Givenn, how many structurally uniqueBST's(binary search trees) that store values 1...n?For...
分类:
其他好文 时间:
2015-01-13 21:13:32
阅读次数:
161
Given n, how many structurally unique BST's (binary search trees) that store values 1...n?
For example,
Given n = 3, there are a total of 5 unique BST's.
1 3 3 2 1
\ ...
分类:
其他好文 时间:
2015-01-13 19:50:02
阅读次数:
147
今天终于学习了一下git,虽然还没完全了解git和svn的不同之处,但也算掌握了git的一些基本操作了,看了好几个教程,终于会了!!!以前以为git就是github,真是too naive too simple....步入正题:第一步,在github新建项目,选择new Repository 第二步...
分类:
其他好文 时间:
2015-01-13 15:41:41
阅读次数:
206