$(function () { $("#txtPhone").focus(function () { $(this).next().show().removeClass("onError").removeClass("onright").addClass("ontan").ht...
分类:
其他好文 时间:
2014-06-15 22:44:27
阅读次数:
346
Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.If such arrangement is not possibl...
分类:
其他好文 时间:
2014-06-15 21:21:17
阅读次数:
152
TestNG的英文为Test Next Generation, 听上去好像下一代测试框架已经无法正常命名了的样子,哈哈,言归正传,啥是TestNG呢,它是一套测试框架,在原来的Junit框架的思想基础上开发的新一代测试框架,既然这么牛b,那果断弄来试试。本文主要从安装步骤-->第一个测试例子-->....
分类:
其他好文 时间:
2014-06-15 00:46:56
阅读次数:
233
题目二:逆序链表输出。题目描述:
将输入的一个单向链表,逆序后输出链表中的值。链表定义如下:typedef struct tagListNode { int value; struct
tagListNode *next; }ListNode; 要求实现函数: void converse...
分类:
其他好文 时间:
2014-06-13 18:35:48
阅读次数:
203
这一题不会做啊……我觉得真要比赛的话我可能会随机上几万次,然后再用LCA求距离,更新最优值,等到快超时的时候输出答案……题解请看2007年陈瑜希论文代码: 1
const maxn=400100; 2 type node=record 3 w,go,next:longint; 4 ...
分类:
其他好文 时间:
2014-06-13 18:19:27
阅读次数:
205
求一个排列的下一个排列。1,2,3→1,3,23,2,1→1,2,31,1,5→1,5,1#include
#include #include using namespace std; class Solution{public: void
nextPermutation(vector &nu...
分类:
其他好文 时间:
2014-06-13 16:41:56
阅读次数:
173
这个比较简单,用栈、递归、倒转链表都可以实现,不再过多解释。代码使用递归实现 1
#include 2 #include 3 #include 4 typedef struct Node 5 { 6 int data; 7 Node*
next; 8 }Node, *List;...
分类:
其他好文 时间:
2014-06-13 15:25:59
阅读次数:
194
题目描述Dominos are lots of fun. Children like to stand
the tiles on their side in long lines. When one domino falls, it knocks down the
next one, which k...
分类:
其他好文 时间:
2014-06-13 08:09:51
阅读次数:
318
importjava.util.*;
publicclasslianxi72_3{
publicstaticvoidmain(String[]args){
//TODOAuto-generatedmethodstub
Scanners=newScanner(System.in);
System.out.println("请输入a的值:");
inta=s.nextInt();
System.out.println("请输入b的值:");
intb=s.next..
分类:
编程语言 时间:
2014-06-10 23:01:16
阅读次数:
352
importjava.util.*;
publicclassIf{
publicstaticvoidmain(String[]args){
//TODOAuto-generatedmethodstub
Scannerin=newScanner(System.in);
System.out.println("请输入用户:");
Stringname=in.next();
System.out.println("请输入密码:");
intbb=in.nextInt();
Stringa="..
分类:
编程语言 时间:
2014-06-10 22:25:26
阅读次数:
252