题目:
zigzag,就是锯齿状的数字顺序,其形式就是首尾行间断的比内部行少一个,就是下面的形式。
1 * 7
2 6 8 12
3 5 9 11
4 * 10
更好看点就是
1 7
2 ...
分类:
其他好文 时间:
2014-05-19 22:43:12
阅读次数:
373
using System;using System.Collections.Generic;using
System.Collections.Specialized;using System.Linq;using System.Reflection;using
System.Web;using We...
分类:
Web程序 时间:
2014-05-18 19:06:49
阅读次数:
451
隐马尔可夫模型HMM与维特比Veterbi算法(二)主要内容:前向算法(Forward
Algorithm)穷举搜索( Exhaustive search for
solution)使用递归降低问题复杂度前向算法的定义程序实现前向算法举例说明前向算法一、前向算法(Forward Algorithm)...
分类:
其他好文 时间:
2014-05-18 19:05:07
阅读次数:
389
题目:给一个数组和给定的目标值,要求在数组里找出三个元素,这三个元素的和最接近目标值,当然等于是最好的。
用3sum的方法,把判定条件作些修改。
int twoSum(vector &num, int start, int target)
{
if(num.size() = num.size())
return -target;
int head = start;
int t...
分类:
其他好文 时间:
2014-05-18 10:49:12
阅读次数:
217
【题目】
Given a linked list, swap every two adjacent nodes and return its head.
For example,
Given 1->2->3->4, you should return the list as 2->1->4->3.
Your algorithm should use only constant space. You may not modify the values in the list, only nodes it...
分类:
其他好文 时间:
2014-05-18 08:37:57
阅读次数:
370
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4662
MU Puzzle
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 1296 Accepted Submissio...
分类:
其他好文 时间:
2014-05-18 04:16:16
阅读次数:
407
一:上图二:相关代码using System;using
System.Collections.Generic;using System.ComponentModel;using System.Data;using
System.Drawing;using System.Linq;using Sys...
分类:
编程语言 时间:
2014-05-18 01:51:47
阅读次数:
407
原作者:Swagatam Das,Arijit Biswas,Sambarta
Dasgupta,和Ajith Abraham[摘 要]细菌觅食优化算法(Bacterial foraging optimization
algorithm[BFOA])已经被分布式优化和控制的同行们当作一种全局性的优化...
分类:
其他好文 时间:
2014-05-17 23:54:50
阅读次数:
802
using System;using System.Collections;using
System.Collections.Generic;using System.Linq;using System.Text;using
命名空间.ir;//如果使用的类不在一个namespace,添加using...
分类:
其他好文 时间:
2014-05-17 20:30:00
阅读次数:
227
using System;using System.Collections.Generic;using
System.Linq;using System.Text;namespace 索引{ class Program { static void
Main(string[]...
分类:
其他好文 时间:
2014-05-17 20:10:36
阅读次数:
254