码迷,mamicode.com
首页 >  
搜索关键字:problems    ( 6275个结果
[LeetCode]83 Remove Duplicates from Sorted List
https://oj.leetcode.com/problems/remove-duplicates-from-sorted-list/http://blog.csdn.net/linhuanmars/article/details/24354291/** *Definitionforsingly-linkedlist. *publicclassListNode{ *intval; *ListNodenext; *ListNode(intx){ *val=x; *next=null; *} *} */ pub..
分类:其他好文   时间:2015-01-04 19:31:37    阅读次数:201
[LeetCode]81 Search in Rotated Sorted Array II
https://oj.leetcode.com/problems/search-in-rotated-sorted-array-ii/http://blog.csdn.net/linhuanmars/article/details/20588511publicclassSolution{ publicbooleansearch(int[]A,inttarget){ if(A==null||A.length==0) returnfalse; returnfind(A,0,A.length-1,target); ..
分类:其他好文   时间:2015-01-04 19:31:08    阅读次数:133
[LeetCode]82 Remove Duplicates from Sorted List II
https://oj.leetcode.com/problems/remove-duplicates-from-sorted-list-ii/http://blog.csdn.net/linhuanmars/article/details/24389429/** *Definitionforsingly-linkedlist. *publicclassListNode{ *intval; *ListNodenext; *ListNode(intx){ *val=x; *next=null; *} *} */ ..
分类:其他好文   时间:2015-01-04 19:30:52    阅读次数:150
[LeetCode]62 Unique Paths
https://oj.leetcode.com/problems/unique-paths/http://blog.csdn.net/linhuanmars/article/details/22126357publicclassSolution{ publicintuniquePaths(intm,intn){ if(m<0||n<0) return-1;//Invalidinput //Start0,0 //Endm,n //Useamatrix[m][n]. //Eachelementi..
分类:其他好文   时间:2015-01-04 11:36:10    阅读次数:101
[LeetCode]67 Add Binary
https://oj.leetcode.com/problems/add-binary/http://blog.csdn.net/linhuanmars/article/details/20192227publicclassSolution{ publicStringaddBinary(Stringa,Stringb){ StringBuildersb=newStringBuilder(); char[]charsA=a.toCharArray(); char[]charsB=b.toCharArray(..
分类:其他好文   时间:2015-01-04 11:35:00    阅读次数:156
[LeetCode]21 Merge Two Sorted Lists
https://oj.leetcode.com/problems/merge-two-sorted-lists/http://blog.csdn.net/linhuanmars/article/details/19712593/** *Definitionforsingly-linkedlist. *publicclassListNode{ *intval; *ListNodenext; *ListNode(intx){ *val=x; *next=null; *} *} */ publicclassSolu..
分类:其他好文   时间:2015-01-04 11:34:49    阅读次数:147
[LeetCode]63 Unique Paths II
https://oj.leetcode.com/problems/unique-paths-ii/http://blog.csdn.net/linhuanmars/article/details/22135231publicclassSolution{ publicintuniquePathsWithObstacles(int[][]obstacleGrid){ //Validations if(obstacleGrid==null||obstacleGrid.length==0||obstacleGrid..
分类:其他好文   时间:2015-01-04 11:34:38    阅读次数:116
[LeetCode]64 Minimum Path Sum
https://oj.leetcode.com/problems/minimum-path-sum/http://blog.csdn.net/linhuanmars/article/details/22257673publicclassSolution{ publicintminPathSum(int[][]grid){ //Onlymovedownorright. //Otherwise,-oo //Validations. if(grid==null) return-1;//Invalidinput ..
分类:其他好文   时间:2015-01-04 11:34:38    阅读次数:154
[LeetCode]66 Plus One
https://oj.leetcode.com/problems/plus-one/http://blog.csdn.net/linhuanmars/article/details/22365957publicclassSolution{ publicint[]plusOne(int[]digits){ if(digits==null||digits.length==0) returnnull; booleancarry=true; for(inti=digits.length-1;i>=0;i--..
分类:其他好文   时间:2015-01-04 11:33:38    阅读次数:130
[LeetCode]37 Sudoku Solver
https://oj.leetcode.com/problems/sudoku-solver/http://blog.csdn.net/linhuanmars/article/details/20748761publicclassSolution{ publicvoidsolveSudoku(char[][]board){ resolve(board,0,0); } privatebooleanresolve(char[][]b,//currentboard inti,//currentrow intj)/..
分类:其他好文   时间:2015-01-03 13:24:47    阅读次数:155
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!