- 博客(5)
- 资源 (16)
- 收藏
- 关注
原创 Letter Combinations of a Phone Number
1.问题描述 Given a digit string, return all possible letter combinations that the number could represent. A mapping of digit to letters (just like on the telephone buttons) is given below. In
2016-06-29 15:59:25 330
原创 3Sum Closest
1.问题描述 Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. You may assume that each input would ha
2016-06-27 23:28:34 363
原创 THREE SUM
3Sum问题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 sum of zero.Note: The solution set must not contain
2016-06-27 22:21:12 389
原创 Int to Roman
阿拉伯数字转罗马数字(1~3999)思路:直接从个位数开始转起,分别用10,100,1000,10000取余数,不同的余数采用不同的解决办法,最后返回字符串代码class Solution { public: string intToRoman(int num) { int d = 10; int n = num; string rslt(""); while
2016-06-19 23:10:31 242
原创 Roman to Integer
罗马数字转数字,非常简单的语句,直接上代码:class Solution { public: int romanToInt(string s) { auto it = s.begin(); int rslt = 0; while(it!=s.end()) { switch (*it) { case 'I':
2016-06-19 20:42:32 280
cxform-c.dll
2017-05-28
c# 采用DirectX9.0 载入3D模型
2015-05-17
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人