https://leetcode.com/problems/gray-code/The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negati...
分类:
其他好文 时间:
2015-03-09 15:53:12
阅读次数:
194
Reverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as00000010100101000001111010011100), return ...
分类:
其他好文 时间:
2015-03-09 15:44:14
阅读次数:
186
Given inorder and postorder traversal of a tree, construct the binary tree.
Note:
You may assume that duplicates do not exist in the tree.
#include
#include
#include
using namespace std;
stru...
分类:
其他好文 时间:
2015-03-09 14:29:02
阅读次数:
146
Reverse bits of a given 32 bits unsigned integer. For example, given input 43261596 (represented in binary as 00000010100101000001111010011100), retur...
分类:
移动开发 时间:
2015-03-09 14:15:03
阅读次数:
128
usingSystem.Runtime.Serialization.Formatters.Binary;//引入供序列化Image对象使用/// /// 将byte[]转换为Image/// /// 字节数组/// ImagepublicImage ReadImage(byte[] bytes){M...
分类:
其他好文 时间:
2015-03-09 14:13:45
阅读次数:
117
Reverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as00000010100101000001111010011100), return ...
分类:
其他好文 时间:
2015-03-09 12:39:01
阅读次数:
171
Given preorder and inorder traversal of a tree, construct the binary tree.
Note:
You may assume that duplicates do not exist in the tree.
#include
#include
#include
#include
using namespace ...
分类:
其他好文 时间:
2015-03-09 10:57:56
阅读次数:
102
1.题目Given a binary tree, return the inorder traversal of its nodes' values.For example:Given binary tree {1,#,2,3}, 1
2
/
3
return [1,3,2].Note: Recursive solution is trivial, coul...
分类:
其他好文 时间:
2015-03-09 10:55:20
阅读次数:
145
Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area.此题是之前那道的Largest Rectangle in Hist...
分类:
其他好文 时间:
2015-03-09 07:01:30
阅读次数:
140
forward 与 ! (tell) 的差异,举个例子:Main(当前actor): topNode ! Insert(requester, id=1, ele = 2)topNode: root ! Insert(requester, id=1, ele = 2)对于root而言,Insert消息...
分类:
其他好文 时间:
2015-03-09 00:27:22
阅读次数:
279