上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 28 下一页

2015年5月13日

摘要: 题目:Givennnon-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the his... 阅读全文
posted @ 2015-05-13 09:42 承续缘 阅读(319) 评论(0) 推荐(0) 编辑

2015年5月12日

摘要: 题目:Given a string containing just the characters'('and')', find the length of the longest valid (well-formed) parentheses substring.For"(()", the long... 阅读全文
posted @ 2015-05-12 18:49 承续缘 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid.The brackets must close in the corre... 阅读全文
posted @ 2015-05-12 15:20 承续缘 阅读(139) 评论(0) 推荐(0) 编辑

2015年5月11日

摘要: 题目:Given a stringsconsists of upper/lower-case alphabets and empty space characters' ', return the length of last word in the string.If the last word ... 阅读全文
posted @ 2015-05-11 23:07 承续缘 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 题目:Given an absolute path for a file (Unix-style), simplify it.For example,path="/home/", =>"/home"path="/a/./b/../../c/", =>"/c"click to show corner ... 阅读全文
posted @ 2015-05-11 21:38 承续缘 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 题目:Given an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.代码:class Solution {public: vect... 阅读全文
posted @ 2015-05-11 19:47 承续缘 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 题目:The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1is read off as"one 1"or11.11is read off as... 阅读全文
posted @ 2015-05-11 19:00 承续缘 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.代码:class Solution {public: int romanTo... 阅读全文
posted @ 2015-05-11 16:02 承续缘 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 题目:Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.代码:class Solution {public: string intT... 阅读全文
posted @ 2015-05-11 15:26 承续缘 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 题目:Validate if a given string is numeric.Some examples:"0"=>true" 0.1 "=>true"abc"=>false"1 a"=>false"2e10"=>trueNote:It is intended for the problem s... 阅读全文
posted @ 2015-05-11 11:48 承续缘 阅读(243) 评论(0) 推荐(0) 编辑
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 28 下一页

导航