进入MongoDB下载中心:http://www.mongodb.org/downloadsWe recommend using these binary distributions (官方推荐使用二进制版本!)根据自己的实际系统环境,下载所要的文件,我的是Linux 64-bit.wget htt...
分类:
数据库 时间:
2014-09-05 12:36:11
阅读次数:
282
public class Solution { public List postorderTraversal(TreeNode root) { List result = new ArrayList(); Stack nodeStack = new Stack();...
分类:
其他好文 时间:
2014-09-05 02:08:10
阅读次数:
166
一开始的思路是:中序遍历+判断遍历后的数组,时间空间都不是最优果然超时了 1 /** 2 * Definition for binary tree 3 * struct TreeNode { 4 * int val; 5 * TreeNode *left; 6 * ...
分类:
其他好文 时间:
2014-09-04 23:35:50
阅读次数:
393
递归 1 /** 2 * Definition for binary tree 3 * struct TreeNode { 4 * int val; 5 * TreeNode *left; 6 * TreeNode *right; 7 * TreeNode...
分类:
其他好文 时间:
2014-09-04 22:16:00
阅读次数:
228
Givenn, generate all structurally uniqueBST's(binary search trees) that store values 1...n.For example,Givenn= 3, your program should return all 5 uni...
分类:
其他好文 时间:
2014-09-04 18:52:29
阅读次数:
181
1. [代码][C/C++]代码 /** Copyright (c) 2011, Jim Hollinger* All rights reserved.** Redistribution and use in source and binary forms, with or without* mod...
分类:
其他好文 时间:
2014-09-04 16:40:09
阅读次数:
259
LeetCode: Maximal RectangleGiven a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area.地址:htt...
分类:
其他好文 时间:
2014-09-03 22:36:37
阅读次数:
220
Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root).For e...
分类:
其他好文 时间:
2014-09-03 21:13:57
阅读次数:
142
实际中估计也没有这个需求,只是写写。
能不能直接由2进制转为16进制呢,最直接的办法是通过位移操作,也就是通常所说的 每四位二进制对应一个16进制,
假如java中有一种 二进制的基础类型 Binary bi = new Binary(11010101);这样的话 进行 bi >>> 4 位移操作 就可以很容易转换了,关于这个可以参考Integer.java中的toHexString(in...
分类:
其他好文 时间:
2014-09-03 18:09:57
阅读次数:
240
3 The class File Format
3.1 The ClassFile Structure
3.2 The Internal Form of Names
3.2.1 Binary Class and Interface Names
3.2.2 Unqualified Names
3.3 Descriptors and Signatures
3.3.1 Grammar Not...
分类:
其他好文 时间:
2014-09-03 16:57:58
阅读次数:
358