问题描述
Given a binary tree, return the preorder traversal of its nodes' values.
For example:
Given binary tree {1,#,2,3},
1
2
/
3
return [1,2,3].
Note: Recurs...
分类:
其他好文 时间:
2014-09-02 17:50:45
阅读次数:
136
Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.
Note: You can only move either down or right at...
分类:
其他好文 时间:
2014-09-01 22:52:23
阅读次数:
217
LeetCode: Merge Sorted ArrayGiven two sorted integer arrays A and B, merge B into A as one sorted array. Note:You may assume that A has enough space (...
分类:
其他好文 时间:
2014-09-01 22:29:23
阅读次数:
172
Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-nega...
分类:
其他好文 时间:
2014-09-01 20:59:03
阅读次数:
173
how to use tcpdump command:note: 显示的时候最好都已数字的形式显示.1) tcpdump -i en1; 告诉 tcpdump 要监听的端口号.2) tcpdump -i en1 -nn; -nn 告诉协议要以数字的形式显示(不是默认的TCP, 而是对应的协议号6)....
分类:
其他好文 时间:
2014-09-01 00:22:32
阅读次数:
226
LeetCode: SubsetsGiven a set of distinct integers, S, return all possible subsets.Note:Elements in a subset must be in non-descending order.The soluti...
分类:
其他好文 时间:
2014-08-31 22:53:32
阅读次数:
250
桌面便签软件是Android上常用软件的一种,比如比较早的Sticky Note,就曾非常流行,而实际上使用android平台对widget开发的支持,桌面便签类软件是非常易于开发的。 本文通过逐步实现一个简单的桌面便签软件,和大...
分类:
移动开发 时间:
2014-08-31 18:53:12
阅读次数:
383
Given an array of integers, every element appearsthreetimes except for one. Find that single one.Note:Your algorithm should have a linear runtime comp...
分类:
其他好文 时间:
2014-08-31 14:27:21
阅读次数:
146
Two elements of a binary search tree (BST) are swapped by mistake.
Recover the tree without changing its structure.
Note:
A solution using O(n)
space is pretty straight forward. Could you devis...
分类:
其他好文 时间:
2014-08-29 21:28:08
阅读次数:
313
1. Receiving 相关 參照 Note: 402245.1, 跑 rcv11i_sa.sql 就能够, 输入 po number, 其余默认. 參照 Note: 1294177.1, 假设上面的脚本有问题, 能够从这个 Note 里面下载脚本, 对各个表单独查找数据.2. Order M.....
分类:
其他好文 时间:
2014-08-29 14:26:07
阅读次数:
144