摘要: 题目描述:(链接)Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.解题思路: 1 class Solution { 2 public: ... 阅读全文
posted @ 2015-11-12 18:28 skycore 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 题目描述:(链接)Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.解题思路: 1 class Solution { 2 public: ... 阅读全文
posted @ 2015-11-12 18:15 skycore 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 题目描述:(链接)Write a function to find the longest common prefix string amongst an array of strings.解题思路:两两比较。 1 class Solution { 2 public: 3 string lo... 阅读全文
posted @ 2015-11-12 10:22 skycore 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 题目描述:(链接)Given a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid.The brackets must close in the... 阅读全文
posted @ 2015-11-12 10:09 skycore 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 题目描述:(链接)Given two sorted integer arraysnums1andnums2, mergenums2intonums1as one sorted array.Note:You may assume thatnums1has enough space (size that... 阅读全文
posted @ 2015-11-12 09:55 skycore 阅读(116) 评论(0) 推荐(0) 编辑