1. 概念 表示一个作用于某对象结构中的各元素的操作,它使你可以在不改变各元素类的前提下定义作用于这个元素的新操作2. 案例import java.util.ArrayList;import java.util.List;import java.util.Random;/** * * 声明接受哪一....
分类:
其他好文 时间:
2014-06-27 22:08:21
阅读次数:
272
js返回上一页并刷新的几种方法。参考链接:http://www.jbxue.com/article/11230.html返回上一页刷新当前页面返回前两页返回上一页并刷新页面跳转:onclick="window.location.href='list.php'"Javascript刷新页面的几种方法:...
分类:
Web程序 时间:
2014-06-26 00:38:14
阅读次数:
353
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.TreeNode *createSearchTree(ListNode *&hea...
分类:
其他好文 时间:
2014-06-26 00:12:57
阅读次数:
289
Reverse a linked list from positionmton. Do it in-place and in one-pass.For example:Given1->2->3->4->5->NULL,m= 2 andn= 4,return1->4->3->2->5->NULL.No...
分类:
其他好文 时间:
2014-06-25 23:36:53
阅读次数:
291
Java连接redis的使用演示样例 Redis是开源的key-value存储工具,redis通经常使用来存储结构化的数据,由于redis的key能够包括String、hash、listset和sorted list。 Redisserver眼下最稳定的版本号是2.8.9,能够到官网http://r...
分类:
编程语言 时间:
2014-06-25 22:19:07
阅读次数:
355
Dmaths: assist mathematical drawings and symbolsMultiSave: save simultaneously to odt, pdf and doc.Review: add a review toolbarTexMaths: LaTeX equatio...
分类:
其他好文 时间:
2014-06-25 21:59:34
阅读次数:
242
function ret = GenColorList() ret = [ 0 0 255; # blue 138 43 226; # blueviolet 165 42 42; # brown 210 105 30; # chocolate 0 100 0; # dark-g...
分类:
其他好文 时间:
2014-06-24 14:11:38
阅读次数:
199
Given a list, rotate the list to the right bykplaces, wherekis non-negative.For example:Given1->2->3->4->5->NULLandk=2,return4->5->1->2->3->NULL.先算出链表...
分类:
其他好文 时间:
2014-06-24 14:03:10
阅读次数:
192
使用l,r指针游动。
然后使用记录游动过程中的最大值。
我离散化了一下。
#include
#include
#include
#include
#include
#include
using namespace std;
#define maxn 110000
mapmp;
struct list
{
int x;
int get;
int lose;
in...
分类:
其他好文 时间:
2014-06-22 11:52:02
阅读次数:
226
首先申明一下,写此博文的目的是纪录一下,知识都是现成的,只是整理一下,为了让自己更容易看懂,比在其他地方更容易明白。因为它们太常用了,不忍心每次都去用那么长的时间查看MSDN,希望能在这里用理少的时间来理解并运用其用法。最终目标是减少从接触到能理解并使用的时间。List类型的查找操作Find ...
分类:
其他好文 时间:
2014-06-22 10:48:22
阅读次数:
231