摘要: qiongxx.com 阅读全文
posted @ 2016-03-14 20:36 D_riv 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 4 using namespace std; 5 void swap(int* a,int pos,int j){ 6 int temp=a[pos]; 7 a[pos]=a[j]; 8 a[j]=temp; 9 }10... 阅读全文
posted @ 2015-11-23 21:03 D_riv 阅读(2048) 评论(0) 推荐(0) 编辑
摘要: 最近做线性规划问题,要用到GLPK工具,VS2013环境下鼓捣了好久终于成功.下面一步步来展示一下环境的配置.1.下载GLPK4.45版本 http://glpk-for-windows.soft112.com/然后解压.2.用VS2013新建一个项目,命名为GLPK_TEST,源文件里建一个cpp... 阅读全文
posted @ 2015-05-04 16:42 D_riv 阅读(3854) 评论(2) 推荐(0) 编辑
摘要: 1 package edu.thu.keyword.test; 2 3 import java.io.File; 4 import java.io.InputStreamReader; 5 import java.io.BufferedReader; 6 import java.io.Buffe... 阅读全文
posted @ 2015-04-29 15:33 D_riv 阅读(742) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2015-04-27 13:26 D_riv 阅读(18) 评论(1) 推荐(0) 编辑
摘要: 描述:The string"PAYPALISHIRING"is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font... 阅读全文
posted @ 2015-04-16 12:06 D_riv 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 产生原始数组元素的全排列,但是要求是非冗余的,也就是说原始数组可以有重复的元素,比如{2,2,2}这个数组,只有一种排列,2这个元素必须按相同处理,只是个数是3 阅读全文
posted @ 2015-04-13 14:54 D_riv 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 描述:Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest... 阅读全文
posted @ 2015-04-12 19:52 D_riv 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 描述:he demons had captured the princess (P) and imprisoned her in the bottom-right corner of a dungeon. The dungeon consists of M x N rooms laid out in... 阅读全文
posted @ 2015-04-11 13:31 D_riv 阅读(290) 评论(0) 推荐(0) 编辑
摘要: 描述:There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should ... 阅读全文
posted @ 2015-04-10 16:36 D_riv 阅读(1141) 评论(0) 推荐(0) 编辑