码迷,mamicode.com
首页 >  
搜索关键字:one discrete length    ( 47106个结果
<Effective Django>读书笔记
In Django parlance, a project is the final product, and it assembles one or more applications together.Manage.py is a pointer back to Django-admin.py ...
分类:其他好文   时间:2014-05-10 07:56:19    阅读次数:480
java之冒泡排序
/** * Created by rabbit on 2014-5-9. */ class ArrayTest2 { public static void BubbleSort(int [] arr) //创建冒泡排序方法 { for (int x=0;x<arr.length-1;x++) ...
分类:编程语言   时间:2014-05-10 06:39:45    阅读次数:355
用ajax将后台数据传入前台js
1、后台连接数据库,取到数据string sql = ".......................................";string one = OracleHelperTools.ExecuteScalar(sql); //这里图省事用的oraclehelperstring fl...
分类:Web程序   时间:2014-05-10 06:15:07    阅读次数:405
[leetcode]Single Number @ Python
原题地址:http://www.cnblogs.com/x1957/p/3373994.html题意:Given an array of integers, every element appearstwiceexcept for one. Find that single one.要求:线性时间复...
分类:编程语言   时间:2014-05-10 05:22:27    阅读次数:408
冒泡排序
int BubbleSort(int a[]){ int length = sizeof(a)/sizeof(int); int i,j; int temp; for(i = 0;i i;j--) { if(a[j] < a[j-1]) { ...
分类:其他好文   时间:2014-05-10 03:24:40    阅读次数:233
object(DOMNodeList) object(DOMElement)
获取api的时候,获取回来的特殊对象 $eBayTime = $responseDoc->getElementsByTagName('Timestamp'); object(DOMNodeList)    $eBayTime 这种对象,取长度 $eBayTime->length 取值   $eBayTime->item(0) 取值的对象是 object(DOMElement) $eBay...
分类:其他好文   时间:2014-05-09 22:07:07    阅读次数:288
HDU 4283 You Are the One 区间dp
题意: 题意好复杂。。。 给定n个人,从左到右排好队。 他们依次从左到右离开队伍。 每个人有个权值d 当某个人是第k-th离开队伍的,那么不开心值为 d*(k-1) 有一个操作,对于一个子序列,可以把前面一段翻转。 问最小的不开心值和。 #include #include #include #include #include #include using namespace...
分类:其他好文   时间:2014-05-09 20:45:04    阅读次数:288
java选择排序
/** * Created by rabbit on 2014-5-9. */ class ArrayTest2 { public static void SelectSort(int [] arr) //定义选择排序的方法 { for (int x=0;x<arr.length;x++) { .....
分类:编程语言   时间:2014-05-09 19:49:37    阅读次数:236
分词研究中的最小描述长度(Minimum description length)方法
a b ab a ba          MDL(minimum description length,最小描述长度) 原理是 Rissane 在研究通用编码时提出的。其基本原理是对于一组给定的实例数据 D , 如果要对其进行保存 ,为了节省存储空间, 一般采用某种模型对其进行编码压缩,然后再保存压缩后的数据。同时, 为了以后正确恢复这些实例数据,将所用的模型也保存起来。所以需要保存的数据长度(...
分类:其他好文   时间:2014-05-09 15:03:18    阅读次数:415
POJ1742可行性背包
题目: Description People in Silverland use coins.They have coins of value A1,A2,A3...An Silverland dollar.One day Tony opened his money-box and found there were some coins.He decided to buy a very n...
分类:其他好文   时间:2014-05-09 15:00:55    阅读次数:345
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!