题目:统计n个节点的二叉树的个数。
分析:组合,计数,卡特兰树...
分类:
其他好文 时间:
2014-09-12 20:47:14
阅读次数:
154
放到这里,便于以后查阅! 1> atom_to_list(hello). "hello" 2> list_to_atom("hello"). hello 3> binary_to_list(<<"hello">>). "hello" 4> binary_to_list(<<104,101,108,108,111>>). "hello" 5> list_to_binar...
分类:
其他好文 时间:
2014-09-12 19:25:44
阅读次数:
245
网上看了有些代码有些错误,这里重新更正了下
思想:循环数组有一边是有序的,首先先判断哪一边有序(通过将当前mid点与最左边节点比较),然后查看是否在有序边上
代码如下
#include
#include
using namespace std;
int Binary_Search(int *a,int low,int high,int value)
{
int mid=(low+high)...
分类:
其他好文 时间:
2014-09-12 19:11:56
阅读次数:
236
修改服务器上的nginx的配置文件 /usr/local/nginx/conf/nginx.conf http { ? ??limit_req_zone $binary_remote_addr zone=one:10m rate=3000r/m; ? ??proxy_cache_path??/var/cache/nginx levels=1:2 key...
分类:
其他好文 时间:
2014-09-12 17:29:34
阅读次数:
382
在Ubuntu12.04上下载了Chromium Browser浏览器的源码,需要经过配置与编译才能运行。
配置的脚本如下:
#!/bin/sh
export GYP_DEFINES="disable_nacl=1 linux_use_gold_binary=0 linux_use_gold_flags=1 target_arch=ia32 remove_webcore_debug_sym...
分类:
其他好文 时间:
2014-09-12 17:22:33
阅读次数:
338
递归 1 /** 2 * Definition for binary tree 3 * struct TreeNode { 4 * int val; 5 * TreeNode *left; 6 * TreeNode *right; 7 * TreeNode...
分类:
其他好文 时间:
2014-09-12 11:36:23
阅读次数:
183
1 public class Solution { 2 public int minDepth(TreeNode root) { 3 if (root==null) return 0; 4 List upperLevelList = new ArrayLis...
分类:
其他好文 时间:
2014-09-12 01:08:32
阅读次数:
285
1,在linux下安装客户端连接windows下 的MongoDBServer.2,远程连接ABI(Application Binary Interface)/API(Program);
分类:
数据库 时间:
2014-09-11 23:35:02
阅读次数:
257
Maximal RectangleGiven a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area.解题分析:联想到 最大矩形面积 ...
分类:
其他好文 时间:
2014-09-11 20:56:02
阅读次数:
270
(一)集成步骤
1、直接拖拽project 文件到父级文件(不能直接拖文件夹)
2、修改Other Linker Flags 中的引用 (根据自动生成的项目,复制成一样的即可)
3、主项目 Build Phases 中添加target 和 link binary with Libraries
(二)头文件找不到解决方案
...
分类:
移动开发 时间:
2014-09-11 19:29:32
阅读次数:
204