摘要:
Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.classSolution{public:intromanToInt(strings){... 阅读全文
posted @ 2014-05-29 15:27
erictanghu
阅读(84)
评论(0)
推荐(0)
摘要:
Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.classSolution{public:stringintToRoman(intnum... 阅读全文
posted @ 2014-05-29 15:26
erictanghu
阅读(97)
评论(0)
推荐(0)
摘要:
Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn such that the two endpoints of ... 阅读全文
posted @ 2014-05-29 15:25
erictanghu
阅读(113)
评论(0)
推荐(0)
摘要:
Implement regular expression matching with support for'.'and'*'.'.' Matches any single character. '*' Matches zero or more of the preceding element. T... 阅读全文
posted @ 2014-05-29 15:24
erictanghu
阅读(104)
评论(0)
推荐(0)
摘要:
Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integers be palindromes? (i... 阅读全文
posted @ 2014-05-29 15:23
erictanghu
阅读(86)
评论(0)
推荐(0)
摘要:
Implementatoito convert a string to an integer.Hint:Carefully consider all possible input cases. If you want a challenge, please do not see below and ... 阅读全文
posted @ 2014-05-29 15:17
erictanghu
阅读(142)
评论(0)
推荐(0)
摘要:
Reverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321click to show spoilers.Have you thought about this?Here are som... 阅读全文
posted @ 2014-05-29 15:08
erictanghu
阅读(138)
评论(0)
推荐(0)
摘要:
The string"PAYPALISHIRING"is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font fo... 阅读全文
posted @ 2014-05-29 15:07
erictanghu
阅读(106)
评论(0)
推荐(0)
摘要:
Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest pa... 阅读全文
posted @ 2014-05-29 15:06
erictanghu
阅读(122)
评论(0)
推荐(0)
摘要:
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single ... 阅读全文
posted @ 2014-05-29 15:04
erictanghu
阅读(120)
评论(0)
推荐(0)

浙公网安备 33010602011771号