题目描述:题目链接: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
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
# -*- 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
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
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
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
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
# -*- 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
# -*- 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
# -*- 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