IPSLA是InternetProtocolService-LevelAgreement的缩写,意思是互联网协议服务等级协议。IPSLA主要有以下应用场合:1.静态路由下一跳检测。2.HSRP出接口检测。3.PBR策略路由下一跳检测。本文主要是以静态路由下一跳可达性检测,为例子介绍IPSLA的作用和配置:某种原因下R1和R2..
分类:
系统服务 时间:
2015-01-02 16:12:30
收藏:
0 评论:
0 赞:
0 阅读:
578
https://oj.leetcode.com/problems/container-with-most-water/http://fisherlei.blogspot.com/2013/01/leetcode-container-with-most-water.htmlpublicclassSolution{
publicintmaxArea(int[]height){
//SolutionB:
//returnmaxArea_BruteForce(height);
//SolutionA:
retur..
分类:
其他 时间:
2015-01-02 16:12:20
收藏:
0 评论:
0 赞:
0 阅读:
201
https://oj.leetcode.com/problems/integer-to-roman/http://fisherlei.blogspot.com/2012/12/leetcode-integer-to-roman.htmlpublicclassSolution{
//
//把4,9定义为特殊的字符
//从大到小适配
publicStringintToRoman(intnum){
if(num<1||num>3999)
returnnull;//Inva..
分类:
其他 时间:
2015-01-02 16:12:09
收藏:
0 评论:
0 赞:
0 阅读:
212
https://oj.leetcode.com/problems/roman-to-integer/http://fisherlei.blogspot.com/2012/12/leetcode-roman-to-integer.html//Symbol Value
//I 1
//V 5
//X 10
//L 50
//C 100
//D 500
//M 1,000
publicclassSolution{
publicintromanToInt(Strings){
Map<Character,In..
分类:
其他 时间:
2015-01-02 16:11:49
收藏:
0 评论:
0 赞:
0 阅读:
212
https://oj.leetcode.com/problems/longest-common-prefix/http://fisherlei.blogspot.com/2012/12/leetcode-longest-common-prefix.htmlpublicclassSolution{
publicStringlongestCommonPrefix(String[]strs)
{
//Validations
if(strs==null||strs.length==0)
return"";
if(s..
分类:
其他 时间:
2015-01-02 16:11:39
收藏:
0 评论:
0 赞:
0 阅读:
210
为什么要编译安装软件呢?有人会问,放着制作好的RPM包不用,干嘛费真么大的劲用源码来编译安装呢?其实,源码包安装有如下好处:1、最大的好处就在于可以根据自身的需求,最大程度上对软件进行定制安装2、源码安装可以选择最新的软件包3、源码包安装的软件卸载时极为方便和简..
分类:
Web开发 时间:
2015-01-02 16:11:30
收藏:
0 评论:
0 赞:
0 阅读:
353
https://oj.leetcode.com/problems/3sum/publicclassSolution{
publicList<List<Integer>>threeSum(int[]num){
//SolutionA
//returnthreeSum_Sort(num);
//SolutionB
returnthreeSum_Map(num);
}
////////////////////
//SolutionA:Sort
//
//O(n^2)
privateLi..
分类:
其他 时间:
2015-01-02 16:11:19
收藏:
0 评论:
0 赞:
0 阅读:
197
https://oj.leetcode.com/problems/3sum-closest/http://fisherlei.blogspot.com/2013/01/leetcode-3sum-closest-solution.htmlpublicclassSolution{
publicintthreeSumClosest(int[]num,inttarget){
//Inputvalidations
//...
Arrays.sort(num);
intlen=num.length;
intmin..
分类:
其他 时间:
2015-01-02 16:11:09
收藏:
0 评论:
0 赞:
0 阅读:
311
https://oj.leetcode.com/problems/letter-combinations-of-a-phone-number/http://fisherlei.blogspot.com/2012/12/leetcode-letter-combinations-of-phone.htmlpublicclassSolution{
publicList<String>letterCombinations(Stringdigits){
if(digits==null)
returnnul..
分类:
其他 时间:
2015-01-02 16:10:59
收藏:
0 评论:
0 赞:
0 阅读:
183
https://oj.leetcode.com/problems/remove-nth-node-from-end-of-list/http://fisherlei.blogspot.com/2012/12/leetcode-remove-nth-node-from-end-of.html/**
*Definitionforsingly-linkedlist.
*publicclassListNode{
*intval;
*ListNodenext;
*ListNode(intx){
*val=x;
*nex..
分类:
其他 时间:
2015-01-02 16:10:49
收藏:
0 评论:
0 赞:
0 阅读:
359
https://oj.leetcode.com/problems/valid-parentheses/http://fisherlei.blogspot.com/2013/01/leetcode-valid-parentheses.htmlpublicclassSolution{
publicbooleanisValid(Strings)
{
if(s==null)
returntrue;
Stack<Character>stack=newStack<>();
for(charc:s..
分类:
其他 时间:
2015-01-02 16:10:39
收藏:
0 评论:
0 赞:
0 阅读:
248
https://oj.leetcode.com/problems/generate-parentheses/http://fisherlei.blogspot.com/2012/12/leetcode-generate-parentheses.htmlpublicclassSolution{
publicList<String>generateParenthesis(intn){
//SolutionB:
//returngenerateParenthesis_BruteForce(n);
..
分类:
其他 时间:
2015-01-02 16:10:29
收藏:
0 评论:
0 赞:
0 阅读:
266
https://oj.leetcode.com/problems/merge-k-sorted-lists/http://fisherlei.blogspot.com/2012/12/leetcode-merge-k-sorted-lists.html/**
*Definitionforsingly-linkedlist.
*publicclassListNode{
*intval;
*ListNodenext;
*ListNode(intx){
*val=x;
*next=null;
*}
*}
*/
pu..
分类:
其他 时间:
2015-01-02 16:10:19
收藏:
0 评论:
0 赞:
0 阅读:
270
https://oj.leetcode.com/problems/swap-nodes-in-pairs/http://fisherlei.blogspot.com/2013/01/leetcode-swap-nodes-in-pairs.html/**
*Definitionforsingly-linkedlist.
*publicclassListNode{
*intval;
*ListNodenext;
*ListNode(intx){
*val=x;
*next=null;
*}
*}
*/
publ..
分类:
其他 时间:
2015-01-02 16:10:09
收藏:
0 评论:
0 赞:
0 阅读:
269
https://oj.leetcode.com/problems/reverse-nodes-in-k-group/http://fisherlei.blogspot.com/2012/12/leetcode-reverse-nodes-in-k-group.html/**
*Definitionforsingly-linkedlist.
*publicclassListNode{
*intval;
*ListNodenext;
*ListNode(intx){
*val=x;
*next=null;
*}
..
分类:
其他 时间:
2015-01-02 16:09:49
收藏:
0 评论:
0 赞:
0 阅读:
281
https://oj.leetcode.com/problems/remove-duplicates-from-sorted-array/http://fisherlei.blogspot.com/2012/12/leetcode-remove-duplicates-from-sorted.htmlpublicclassSolution{
publicintremoveDuplicates(int[]A){
if(A==null||A.length==0)
return0;//Invalidinput.
..
分类:
其他 时间:
2015-01-02 16:09:39
收藏:
0 评论:
0 赞:
0 阅读:
240
https://oj.leetcode.com/problems/remove-element/http://fisherlei.blogspot.com/2012/12/leetcode-remove-element.htmlpublicclassSolution{
publicintremoveElement(int[]A,intelem){
//Theordercanbechanged.
//Use2pointers.
//Onetoiteratethearray,
//Onetocopythelas..
分类:
其他 时间:
2015-01-02 16:09:29
收藏:
0 评论:
0 赞:
0 阅读:
243
https://oj.leetcode.com/problems/implement-strstr/http://fisherlei.blogspot.com/2012/12/leetcode-implement-strstr.htmlpublicclassSolution{
publicintstrStr(Stringhaystack,Stringneedle){
//遍历haystack,对每一个字符,匹配needle
if(haystack==null||needle==nu..
分类:
其他 时间:
2015-01-02 16:09:09
收藏:
0 评论:
0 赞:
0 阅读:
258
mysql客户端内可以执行的命令有2类:1、客户端命令:不需要加语句结束符,显示的只是mysql这个客户端命令改如何使用,没有涉及服务器的操作,直接使用help,便可以操作。mysql>help
delimiter(\d)Setstatementdelimiter.
用来设置结束符,定界符,然后替代默认的分号。
ego(..
分类:
数据库技术 时间:
2015-01-02 16:08:49
收藏:
0 评论:
0 赞:
0 阅读:
371
https://oj.leetcode.com/problems/next-permutation/http://fisherlei.blogspot.com/2012/12/leetcode-next-permutation.htmlpublicclassSolution{
publicvoidnextPermutation(int[]num){
//SolutionB
nextPermutation_Math(num);
//SolutionA
//nextPermutation_AllPerms(..
分类:
其他 时间:
2015-01-02 16:08:20
收藏:
0 评论:
0 赞:
0 阅读:
330