码迷,mamicode.com
首页 >  
搜索关键字:median of two sor    ( 12209个结果
LeetCode Median of Two Sorted Arrays
1 #include 2 #include 3 #include 4 #include 5 6 using namespace std; 7 8 class Solution { 9 public: 10 double findMedianSortedArra...
分类:其他好文   时间:2014-09-19 20:59:36    阅读次数:254
计算机中负数表示法
问一个基本的问题。 负数在计算机中如何表示? 举例来说,+8在计算机中表示为二进制的1000,那么-8怎么表示呢? 很容易想到,可以将一个二进制位(bit)专门规定为符号位,它等于0时就表示正数,等于1时就表示负数。比如,在8位机中,规定每个字节的最高位为符号位。那么,+8就是00001000,而-8则是10001000。 但是,随便找一本《计算机原理》,都会告诉你,实际上,计算机内部采用2的补码(Two'sComplement)表示负数。 什么是2的补码? 它是一种数值的转换方法,要分二步完成: 第一步...
分类:其他好文   时间:2014-09-19 19:26:15    阅读次数:210
Collection of algorithm for sorting. 常见排序算法集(二)
Collection of algorithm for sorting heap sort 堆排序                The heapsort algorithm can be divided into two parts.                In the first step, a heap is built out of the data. The h...
分类:其他好文   时间:2014-09-19 19:24:45    阅读次数:220
Two jQuery grid plugin base on bootstrap
MIT Licensehttp://jquery-bootgrid.com/ http://www.pontikis.net/labs/bs_grid/
分类:Web程序   时间:2014-09-19 19:13:15    阅读次数:146
convex hull - Graham's scam Algorithm version-0.1
input:a finite set of two dimentional points P (the number of points n is more than 2)output: the convex hull of PPesudo:1, sort P in Lexgrahical orde...
分类:其他好文   时间:2014-09-19 15:25:35    阅读次数:230
shell 数组
一、声明数组1)array[key]=value # array[0]=one,array[1]=two2)declare -a array # array被当作数组名3)array=( value1 value2 value3 ... )4)array=( [1]=one [2]=two [3]=...
分类:其他好文   时间:2014-09-19 11:25:35    阅读次数:165
Combinations
[leetcode]Given two integers n and k, return all possible combinations of k numbers out of 1 ... n....
分类:其他好文   时间:2014-09-19 10:07:55    阅读次数:209
九度OJ1004 Median
题目描述:     Given an increasing sequence S of N integers, the median is the number at the middle position. For example, the median of S1={11, 12, 13, 14} is 12, and the median of S2={9, 10, 15, 16, 17...
分类:其他好文   时间:2014-09-18 23:50:54    阅读次数:237
Grunt入门教程之二 —— concat插件
Grunt入门教程之二     Concat插件     concat是grunt中用来做文件连接的常用插件,比如说你写了一个类库,有三大模块,如:         one.js         two.js         three.js     当你的项目准备发布的时候,你可能需要将这三个模块合并成一个大的模块all.js,这样做可以减少H...
分类:其他好文   时间:2014-09-18 22:21:44    阅读次数:201
leetcode_num3_Same Tree
题目: Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurally identical and the nodes have the same value. 刷题打卡中...
分类:其他好文   时间:2014-09-18 16:33:24    阅读次数:205
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!