码迷,mamicode.com
首页 >  
搜索关键字:problems    ( 6275个结果
Excel Sheet Column Number 171
题目描述:题目链接:https://oj.leetcode.com/problems/excel-sheet-column-number/给出excel表格中的列号(A,AA,AB),返回数字表示的列号For example: A -> 1 B -> 2 C -> 3 ......
分类:其他好文   时间:2015-01-15 14:15:25    阅读次数:169
Gas Station
https://oj.leetcode.com/problems/gas-station/There areNgas stations along a circular route, where the amount of gas at stationiisgas[i].You have a car...
分类:其他好文   时间:2015-01-15 12:29:53    阅读次数:202
[LeetCode][Python]Regular Expression Matching
# -*- coding: utf8 -*-'''https://oj.leetcode.com/problems/regular-expression-matching/Implement regular expression matching with support for '.' and '...
分类:编程语言   时间:2015-01-15 00:11:02    阅读次数:215
LeetCode: Permutation Sequence 解题报告
PermutationSequence https://oj.leetcode.com/problems/permutation-sequence/The set [1,2,3,…,n] contains a total of n! unique permutations.By listing a....
分类:其他好文   时间:2015-01-14 19:50:23    阅读次数:136
[LeetCode]173 Binary Search Tree Iterator
https://oj.leetcode.com/problems/binary-search-tree-iterator//** *Definitionforbinarytree *publicclassTreeNode{ *intval; *TreeNodeleft; *TreeNoderight; *TreeNode(intx){val=x;} *} */ publicclassBSTIterator{ // //NOTE //Aftertheiteratorbuilt,ifwemodifytheor..
分类:其他好文   时间:2015-01-14 18:17:56    阅读次数:165
[LeetCode]179 Largest Number
https://oj.leetcode.com/problems/largest-number/publicclassSolution{ publicStringlargestNumber(int[]num) { if(num==null||num.length==0) return""; //Converttostring. List<String>strs=newArrayList<>(); for(inti:num) strs.add(String.valueOf(i)); ..
分类:其他好文   时间:2015-01-14 18:17:50    阅读次数:152
[LeetCode]174 Dungeon Game
https://oj.leetcode.com/problems/dungeon-game/ publicclassSolution{ publicintcalculateMinimumHP(int[][]map) { //DP //Definea2DM*Narrayblood. //blood[i][j]meanstheminbloodwhenarrivethispoint. //So,thelastpoint,blood[m-1][n-1]=1 // //blood[i][j]=max(1,//Atlea..
分类:其他好文   时间:2015-01-14 18:17:17    阅读次数:140
[LeetCode][Python]Palindrome Number
# -*- coding: utf8 -*-'''__author__ = 'dabay.wang@gmail.com'https://oj.leetcode.com/problems/palindrome-number/Determine whether an integer is a palin...
分类:编程语言   时间:2015-01-14 06:14:41    阅读次数:177
[LeetCode][Algorithms]String to Integer (atoi)
# -*- coding: utf8 -*-'''__author__ = 'dabay.wang@gmail.com'https://oj.leetcode.com/problems/string-to-integer-atoi/Implement atoi to convert a string...
分类:其他好文   时间:2015-01-14 00:36:59    阅读次数:143
[LeetCode][Algorithms]Reverse Integer
# -*- coding: utf8 -*-'''__author__ = 'dabay.wang@gmail.com'https://oj.leetcode.com/problems/reverse-integer/Reverse digits of an integer.Example1: x ...
分类:其他好文   时间:2015-01-14 00:36:01    阅读次数:167
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!