$(function () { $("#txtPhone").focus(function () { $(this).next().show().removeClass("onError").removeClass("onright").addClass("ontan").ht...
分类:
其他好文 时间:
2014-06-15 22:44:27
阅读次数:
346
原题地址:https://oj.leetcode.com/submissions/detail/5341904/题意:The set[1,2,3,…,n]contains a total ofn! unique permutations.By listing and labeling all of ...
分类:
编程语言 时间:
2014-06-15 21:33:16
阅读次数:
270
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
求第k个排列。刚开始按照一个排列一个排列的求,超时。于是演算了一下,发下有数学规律,其实就是康托解码。康托展开:全排列到一个自然数的双射X=an*(n-1)!+an-1*(n-2)!+...+ai*(i-1)!+...+a2*1!+a1*0!ai为整数,并且0 fractial; fr...
分类:
其他好文 时间:
2014-06-15 07:13:59
阅读次数:
192
TestNG的英文为Test Next Generation, 听上去好像下一代测试框架已经无法正常命名了的样子,哈哈,言归正传,啥是TestNG呢,它是一套测试框架,在原来的Junit框架的思想基础上开发的新一代测试框架,既然这么牛b,那果断弄来试试。本文主要从安装步骤-->第一个测试例子-->....
分类:
其他好文 时间:
2014-06-15 00:46:56
阅读次数:
233
存放学生表的链表的结点类型:typedef struct studentnod{ int no; char name[8]; char sex[2]; char class[4]; struct studentnod *next;}stuType;线性表:是具有相同特性的数据元素的一个有限序列;线性...
分类:
其他好文 时间:
2014-06-14 19:30:52
阅读次数:
210
Description:Given a binary tree, return thezigzag level ordertraversal of its nodes' values. (ie, from left to right, then right to left for the next ...
分类:
其他好文 时间:
2014-06-14 18:41:40
阅读次数:
265
二叉树的创建和四种遍历(前序、先序、后序、层次、结点的层数、深度、叶子数等)—java描述packagejavab;//树的结点类publicclassTreeNode{Stringdata;TreeNodeleftChild,rightChild,next;publicTreeNode(Strin...
分类:
编程语言 时间:
2014-06-14 13:54:02
阅读次数:
404
BCM交换芯片中和路由相关的几个寄存器
EGR_L3_NEXT_HOP、EGR_L3_INTF、ING_L3_NEXT_HOP
BCM XGS系列SDK中和路由相关的几个命令
l3 l3table、 l3 defip 、 l3 intf
其中l3 intf命令配置了EGR_L3_INTF寄存器, 本质上是配置了3层转发接口 也就是我们常说的vlanif接口。
l3 l3tabl...
分类:
其他好文 时间:
2014-06-14 13:29:27
阅读次数:
296
这个比较简单,用栈、递归、倒转链表都可以实现,不再过多解释。代码使用递归实现 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