码迷,mamicode.com
首页 > 2015年01月02日 > 全部分享
[LeetCode]17 Letter Combinations of a Phone Number
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:13:14    阅读次数:134
[LeetCode]19 Remove Nth Node From End of List
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:12:53    阅读次数:132
[LeetCode]20 Valid Parentheses
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:12:14    阅读次数:99
[LeetCode]22 Generate Parentheses
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:12:32    阅读次数:137
[LeetCode]23 Merge k Sorted Lists
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:11:43    阅读次数:152
[LeetCode]24 Swap Nodes in Pairs
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:12:21    阅读次数:151
[LeetCode]25 Reverse Nodes in k-Group
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:12:00    阅读次数:238
[LeetCode]26 Remove Duplicates from Sorted Array
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:12:07    阅读次数:118
[LeetCode]27 Remove Element
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:10:11    阅读次数:129
[LeetCode]28 Implement strStr()
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:12:25    阅读次数:149
MySQL(二)-常用客户端命令、数据类型、日志
mysql客户端内可以执行的命令有2类:1、客户端命令:不需要加语句结束符,显示的只是mysql这个客户端命令改如何使用,没有涉及服务器的操作,直接使用help,便可以操作。mysql>help delimiter(\d)Setstatementdelimiter. 用来设置结束符,定界符,然后替代默认的分号。 ego(..
分类:数据库   时间:2015-01-02 16:11:17    阅读次数:233
[LeetCode]31 Next Permutation
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:11:11    阅读次数:93
CCNA 综合实验
R1:HQ#shrunBuildingconfiguration...Currentconfiguration:2433bytes!version12.4servicetimestampsdebugdatetimemsecservicetimestampslogdatetimemsecnoservicepassword-encryption!hostnameHQ!boot-start-markerboot-end-marker!enablesecret5$1$Y6K/$lir0fGeg6iG58JyQ7A0..
分类:其他好文   时间:2015-01-02 16:09:46    阅读次数:339
Linux socket跨局域网聊天和文件传输
自己写的小软件,基于linux socket的跨局域网聊天和文件传输...
分类:系统相关   时间:2015-01-02 16:10:00    阅读次数:297
VS之插件实现
程序开发中,我们不可能把所有的功能一次全部实现,那么我们就应该留一些接口出来,让其他的功能以插件的形式添加到我们的程序中,这样我们的程序不用做任何更改就可以添加很多新的功能了。我们常用的软件如excel、photoshop等,都有这些功能,那么该如何实现呢?本文通过一个简单的例子实现。...
分类:其他好文   时间:2015-01-02 16:09:22    阅读次数:144
OJ刷题之《蚂蚁感冒》
题目描述 长100厘米的细长直杆子上有n只蚂蚁。它们的头有的朝左,有的朝右。每只蚂蚁都只能沿着杆子向前爬,速度是1厘米/秒。当两只蚂蚁碰面时,它们会同时掉头往相反的方向爬行。这些蚂蚁中,有1只蚂蚁感冒了。并且在和其它蚂蚁碰面时,会把感冒传染给碰到的蚂蚁。 请你计算,当所有蚂蚁都爬离杆子时,有多少只蚂蚁患上了感冒。 输入 第一行输入一个整数n (1< n < 50), 表示蚂蚁的总数。...
分类:其他好文   时间:2015-01-02 16:06:38    阅读次数:175
ZOJ3626---Treasure Hunt I
Treasure Hunt I Time Limit: 2 Seconds      Memory Limit: 65536 KB Akiba is a dangerous country since a bloodsucker living there. Sometimes the bloodsucker will appear and kill everyone who is...
分类:其他好文   时间:2015-01-02 16:09:19    阅读次数:194
976条   上一页 1 ... 23 24 25 26 27 28 29 ... 58 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!