二分法插入排序算法思想简单描写叙述:在插入第i个元素时,对前面的0~i-1元素进行折半,先跟他们中间的那个元素比,假设小,则对前半再进行折半,否则对后半进行折半,直到left>right,然后再把第i个元素前1位与目标位置之间的全部元素后移,再把第i个元素放在目标位置上。二分法没有排序,仅仅有查找。...
分类:
其他好文 时间:
2014-07-22 22:46:36
阅读次数:
250
设$z_{1},\cdots,z_{N}\in\mathbb C$,证明存在$\{1,2,\cdots,N\}$的子集$S$使得$$\left|\sum_{k\in S}z_{k}\right|\geq\frac{1}{\pi}\sum_{k=1}^{N}|z_{k}.|$$证明 设$z_{k}=....
分类:
其他好文 时间:
2014-07-22 00:25:34
阅读次数:
235
代码如下:
思瑜科技在线充值
/* Bank Select */
.ui-list-icons li { float:left; margin:0px 10px 25px 0px; width:218px; padding-right:10px; display:inline; }
.ui-list-icons li input { vertical-align:m...
分类:
其他好文 时间:
2014-07-22 00:19:36
阅读次数:
487
一、题目给定一组数5,2,4,6,1,3,2,6;运用归并排序法对这组数进行排序。二、题目源程序#include#includeint L[100],R[100];void merge(int numbers[],int left, int mid, int right) { ...
分类:
其他好文 时间:
2014-07-22 00:16:35
阅读次数:
218
java很给力逆序用了Colletcions.reverse();/** * Definition for binary tree * public class TreeNode { * int val; * TreeNode left; * TreeNode right; ...
分类:
其他好文 时间:
2014-07-22 00:04:35
阅读次数:
154
Description
The cows have a line of 20 water bowls from which they drink. The bowls can be either right-side-up (properly oriented to serve refreshing cool water) or upside-down (a position which h...
分类:
其他好文 时间:
2014-07-21 22:32:18
阅读次数:
278
在经过Google搜索后。外国的大神说:We don't support Java 8 right now. Support will be added in next versions.大概意思就说。暂时iReport-5.6.0不支持java8的环境。下一个版本支持吧!所以我们只好用java7的...
分类:
其他好文 时间:
2014-07-21 14:21:45
阅读次数:
237