摘要: 1.题目描述 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 tw 阅读全文
posted @ 2018-02-24 21:01 vlice 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 1.题目描述 自己编写一个函数使字符串型的字符转为整形数字 2.题目分析 去除开头空格,判断开头的“+”“-”号就可以了。 3.解题思路 阅读全文
posted @ 2018-02-24 19:55 vlice 阅读(86) 评论(0) 推荐(0) 编辑
摘要: 做的这两道题,到现在还没通过,只好先放一下了。-_-|| 5题代码: 15题代码: 阅读全文
posted @ 2018-02-24 09:37 vlice 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 1.题目描述 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 阅读全文
posted @ 2018-02-24 09:35 vlice 阅读(79) 评论(0) 推荐(0) 编辑