2016年5月11日

摘要: Given an integer, convert it to a roman numeral. Input is guaranteed to be within the range from 1 to 3999. 代码如下: 阅读全文
posted @ 2016-05-11 17:57 烁宝宝 阅读(145) 评论(0) 推荐(0)
 
摘要: Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpo 阅读全文
posted @ 2016-05-11 14:06 烁宝宝 阅读(137) 评论(0) 推荐(0)
 
摘要: Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longes 阅读全文
posted @ 2016-05-11 11:25 烁宝宝 阅读(168) 评论(0) 推荐(0)
 
摘要: Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the leng 阅读全文
posted @ 2016-05-11 09:47 烁宝宝 阅读(126) 评论(0) 推荐(0)