摘要: 题目描述: Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the s 阅读全文
posted @ 2018-02-23 22:56 宵夜在哪 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 题目描述: Given an integer, convert it to a roman numeral. Input is guaranteed to be within the range from 1 to 3999. 解题思路: 观察罗马数字可以发现个十百千位上的数字是可以分开考虑的。 而 阅读全文
posted @ 2018-02-23 21:53 宵夜在哪 阅读(102) 评论(0) 推荐(0) 编辑