码迷,mamicode.com
首页 >  
搜索关键字:binary    ( 11734个结果)
nginx中常见的变量
$arg_PARAMETER客户端GET请求PARAMETER的值。 $args 请求中的参数。 $binary_remote_addr 二进制码形式的客户端地址。 $body_bytes_sent 传送页面的字节数 $content_length 请求头中的Content-length字段。 $c...
分类:其他好文   时间:2016-01-17 21:43:11    阅读次数:201
Jan 16 - Search for a Range; Array; Binary Search;
注意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
Jan 16 - Search Insert Position; Array; Binary Search; Iteration&Recursion;---Iteration再补上
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
Leetcode 100 Same Tree 树
就是判断两棵树的值和结构是否相同注意:要判断是否所有的树节点是否为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# 使用c++指针
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
Convert Binary Search Tree to Doubly Linked List
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中BCD和Currency类型
用了这些年的Delphi,竟然对Currency及TBCDField一知半解,下文给了很好的讲解,值得一读。一.BCD类型BCD即Binary-Coded Decimal?,在Delphi中,BCD字段类型可以精确保存浮点数据类型。Delphi支持的BCD码的数据类型名为TBCD,它的定义如下:TB...
分类:Windows程序   时间:2016-01-16 16:31:58    阅读次数:359
c# 反射
根据程序集的信息,动态的创建类并执行方法using System;using System.IO;using System.Reflection;using System.Runtime.Serialization.Formatters.Binary;namespace ConsoleAppli.....
分类:Windows程序   时间:2016-01-15 22:52:12    阅读次数:249
c# 深拷贝 浅拷贝
浅拷贝对引用类型只拷贝地址,拷贝前后共享一块内存区域。深拷贝就是所有的东西全部重新有一份,没有共享存在,推荐使用序列化深拷贝。using System;using System.IO;using System.Runtime.Serialization.Formatters.Binary;nam.....
分类:Windows程序   时间:2016-01-15 20:28:26    阅读次数:206
Leetcode 226 Invert Binary Tree
交换左右叶子节点 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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!