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-19 22:23:03
阅读次数:
157
[From:http://blog.tonysneed.com/2010/08/05/setting-up-sql-server-2008-express-with-profiler/]Setting up SQL Server 2008 Express with Profiler Posted o...
分类:
数据库 时间:
2015-01-19 20:48:53
阅读次数:
258
上一个也就是第一个实验做的是关于LED的,属于IO口的输出使用,这一节实验是独立按键的使用,即IO 口的输入使用
ministm32 开发板上一共有3个独立按键,分别为 KEY0 KEY1 WK_UP 原理图如下:
注意: KEY0 KEY1 是低电平有效(即它们为低电平时代表按键按下)而 WK_UP 是高电平有效,为什么呢。。很明显,这个问题要分析上面的原理图才能...
分类:
其他好文 时间:
2015-01-19 17:12:37
阅读次数:
195
注册AWS服务后,邮箱会收到一封信,标题如下:
Action Required: AWS Account Alert
内容是让你发一个有效的网址过去,这样才能使用CloudFront、Route53等服务。如果没有开通,点击这些服务的时候,就会出现:Your
service sign-up is almost complete 这样的信息。
出现这个信息后,我们提交了工单,几天都没有...
分类:
其他好文 时间:
2015-01-19 10:52:54
阅读次数:
559
Given a binary tree where all the right nodes are either leaf nodes with a sibling (a left node that shares the same parent node) or empty, flip it up...
分类:
其他好文 时间:
2015-01-19 09:07:58
阅读次数:
134
题意就是求最大子矩阵。
白书上的例题。
如果暴力枚举 左上角,然后长和宽。时间复杂度为O(m^3*n^3)。
可以定义up[][] 为某个格子最大高度,
定义 left[][]为某个格子左扫描最大。
定义 right[][]为右扫描的最大。
最后乘起来。
#include
#include
#include
#include
#include
#include
#include
...
分类:
其他好文 时间:
2015-01-19 00:18:53
阅读次数:
206
题目:You are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?代码:oj测试通过Runtime...
分类:
编程语言 时间:
2015-01-18 23:59:42
阅读次数:
467
Follow up for problem "Populating Next Right Pointers in Each Node".What if the given tree could be any binary tree? Would your previous solution stil...
分类:
其他好文 时间:
2015-01-18 17:05:52
阅读次数:
261
标题:Binary Tree Level Order Traversal II通过率:30.5%难度:简单Given a binary tree, return thebottom-up level ordertraversal of its nodes' values. (ie, from lef...
分类:
其他好文 时间:
2015-01-18 13:02:13
阅读次数:
151
Problem Description
You travel a lot by bus and the costs of all the seperate tickets are starting to add up.
Therefore you want to see if it might be advantageous for you to buy a bus pass.
...
分类:
其他好文 时间:
2015-01-18 11:56:00
阅读次数:
246