码迷,mamicode.com
首页 > 2015年01月02日 > 全部分享
[LeetCode]2 Add Two Numbers
https://oj.leetcode.com/problems/add-two-numbers/http://fisherlei.blogspot.com/2013/01/leetcode-add-two-numbers-solution.html/** *Definitionforsingly-linkedlist. *publicclassListNode{ *intval; *ListNodenext; *ListNode(intx){ *val=x; *next=null; *} *} */ pub..
分类:其他好文   时间:2015-01-02 16:16:51    阅读次数:132
可怜的技术员
看了无数的博文在教授大家如何提高自己的技术水平,我虽然不暗技术,但是总感觉很悲凉。技术本来就是为市场服务的,没有需求,技术本身就变的毫无价值,而所谓的动辄提高自己的技术水平,到底能够让多少人受益呢?我看很少。很多人总是自认为这是由于个人决定的,我看未必,核..
分类:其他好文   时间:2015-01-02 16:17:19    阅读次数:134
[LeetCode]5 Longest Palindromic Substring
https://oj.leetcode.com/problems/longest-palindromic-substring/http://fisherlei.blogspot.com/2012/12/leetcode-longest-palindromic-substring.htmlpublicclassSolution{ publicStringlongestPalindrome(Strings){ //SolutionA: returnlongestPalindrome_Center(s); } ..
分类:其他好文   时间:2015-01-02 16:15:08    阅读次数:122
H3C SR6604 升级IOS
1.如使用ftp方式去上传或下载IOS的话配置如下:[WH-6604-2]ftpserenable---开启FTP功能[WH-6604-2]local-userftp---建立用户名[WH-6604-2-luser-ftp]passwordsimftp---配置用户名密码[WH-6604-2-luser-ftp]service-typeftp---给该用户名服务类型[WH-6604-2-luser-ftp]authoriza..
分类:移动开发   时间:2015-01-02 16:14:47    阅读次数:332
H3C nqa 配置
nqaentryadminhngdtypeicmp-echo使用ICMPping的方式destinationip10.114.10.1frequency1000频率1000msreaction1checked-elementprobe-failthreshold-typeconsecutive5action-typetrigger-onlyreaction2checked-elementprobe-failthreshold-typeconsecutive10action-typetrigger..
分类:其他好文   时间:2015-01-02 16:16:04    阅读次数:626
[LeetCode]6 ZigZag Conversion
https://oj.leetcode.com/problems/zigzag-conversion/http://fisherlei.blogspot.com/2013/01/leetcode-zigzag-conversion.htmlpublicclassSolution{ publicStringconvert(Strings,intnRows){ //SolutionA: returnconvert_NoNewMatrix(s,nRows); } ////////////////////////..
分类:其他好文   时间:2015-01-02 16:13:47    阅读次数:140
[LeetCode]1 Reverse Integer
http://7371901.blog.51cto.com/user_index.php?action=addblog_newhttp://fisherlei.blogspot.com/2012/12/leetcode-reverse-integer.htmlpublicclassSolution{ publicintreverse(intx){ //SolutionA //returnreverse_Mod(x); //SolutionB returnreverse_String(x); } ////..
分类:其他好文   时间:2015-01-02 16:14:15    阅读次数:223
[LeetCode]8 String to Integer (atoi)
https://oj.leetcode.com/problems/string-to-integer-atoi/http://fisherlei.blogspot.com/2013/01/leetcode-string-to-integer-atoi.htmlpublicclassSolution{ publicintatoi(Stringstr){ //Validations if(str==null||str.length()==0) return0; char[]chars=str.trim()...
分类:其他好文   时间:2015-01-02 16:14:54    阅读次数:157
[LeetCode]9 Palindrome Number
https://oj.leetcode.com/problems/palindrome-number/http://fisherlei.blogspot.com/2012/12/leetcode-palindrome-number.htmlpublicclassSolution{ publicbooleanisPalindrome(intx){ //Assume //Negativenumberscannotbepalindrome if(x<0) returnfalse; //Noextrasp..
分类:其他好文   时间:2015-01-02 16:14:01    阅读次数:116
cisco的ip sla 实例应用--端到端的可用性动态监测
IPSLA是InternetProtocolService-LevelAgreement的缩写,意思是互联网协议服务等级协议。IPSLA主要有以下应用场合:1.静态路由下一跳检测。2.HSRP出接口检测。3.PBR策略路由下一跳检测。本文主要是以静态路由下一跳可达性检测,为例子介绍IPSLA的作用和配置:某种原因下R1和R2..
分类:系统相关   时间:2015-01-02 16:12:43    阅读次数:975
[LeetCode]11 Container With Most Water
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:15:22    阅读次数:158
[LeetCode]12 Integer to Roman
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:14:07    阅读次数:128
[LeetCode]13 Roman to Integer
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:13:57    阅读次数:163
[LeetCode]14 Longest Common Prefix
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:13:25    阅读次数:103
Linux软件包管理之编译安装httpd
为什么要编译安装软件呢?有人会问,放着制作好的RPM包不用,干嘛费真么大的劲用源码来编译安装呢?其实,源码包安装有如下好处:1、最大的好处就在于可以根据自身的需求,最大程度上对软件进行定制安装2、源码安装可以选择最新的软件包3、源码包安装的软件卸载时极为方便和简..
分类:Web程序   时间:2015-01-02 16:14:19    阅读次数:230
[LeetCode]15 3Sum
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:46    阅读次数:119
[LeetCode]16 3Sum Closest
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:14:25    阅读次数:116
976条   上一页 1 ... 22 23 24 25 26 27 28 ... 58 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!