$arg_PARAMETER客户端GET请求PARAMETER的值。 $args 请求中的参数。 $binary_remote_addr 二进制码形式的客户端地址。 $body_bytes_sent 传送页面的字节数 $content_length 请求头中的Content-length字段。 $c...
分类:
其他好文 时间:
2016-01-17 21:43:11
阅读次数:
201
注意index不要出现out of bounds的情况:代码:public class Solution { public int[] searchRange(int[] nums, int target) { int len = nums.length; int ...
分类:
其他好文 时间:
2016-01-17 06:29:48
阅读次数:
182
Recursion:代码:public class Solution { public int searchInsert(int[] nums, int target) { int len = nums.length; if(len == 0) return 0; ...
分类:
其他好文 时间:
2016-01-17 06:29:40
阅读次数:
131
就是判断两棵树的值和结构是否相同注意:要判断是否所有的树节点是否为NULL 1 /** 2 * Definition for a binary tree node. 3 * struct TreeNode { 4 * int val; 5 * TreeNode *left; ...
分类:
其他好文 时间:
2016-01-16 19:23:21
阅读次数:
135
c++指针基本使用需要指定unsafe编译选项。using System;using System.IO;using System.Reflection;using System.Runtime.Serialization.Formatters.Binary;namespace ConsoleA.....
分类:
编程语言 时间:
2016-01-16 19:21:42
阅读次数:
214
Question:Convert a binary search tree to doubly linked list with in-order traversal.Example:Given a binary search tree: 4 / \ 2 5 / \1 3retu...
分类:
其他好文 时间:
2016-01-16 16:55:00
阅读次数:
244
用了这些年的Delphi,竟然对Currency及TBCDField一知半解,下文给了很好的讲解,值得一读。一.BCD类型BCD即Binary-Coded Decimal?,在Delphi中,BCD字段类型可以精确保存浮点数据类型。Delphi支持的BCD码的数据类型名为TBCD,它的定义如下:TB...
根据程序集的信息,动态的创建类并执行方法using System;using System.IO;using System.Reflection;using System.Runtime.Serialization.Formatters.Binary;namespace ConsoleAppli.....
浅拷贝对引用类型只拷贝地址,拷贝前后共享一块内存区域。深拷贝就是所有的东西全部重新有一份,没有共享存在,推荐使用序列化深拷贝。using System;using System.IO;using System.Runtime.Serialization.Formatters.Binary;nam.....
交换左右叶子节点 1 /** 2 * Definition for a binary tree node. 3 * struct TreeNode { 4 * int val; 5 * TreeNode *left; 6 * TreeNode *right; 7 ...
分类:
其他好文 时间:
2016-01-15 14:35:45
阅读次数:
137