![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Leetcode
文章平均质量分 80
qq_35709773
这个作者很懒,什么都没留下…
展开
-
Leetcode 007 Reverse Integer 整数翻转
题目链接 英文原文Given a 32-bit signed integer, reverse digits of an integer.Note: Assume we are dealing with an environment which could only hold integers within the 32-bit signed integer range. For the pu...原创 2018-03-07 07:58:56 · 163 阅读 · 0 评论 -
Leetcode 001 - Two Sum 两数之和
简评这是Leetcode 001号 题目,本以为是一道超级简单题。(实际上也确实是)基本的解题思路的确是编程入门者也能写出来。不过我在看了solution之后才发现原来还有很大的优化空间,可以把算法时间复杂度从 O(n^2)优化到O(n)的级别。不过事难两全,相对于的空间复杂度就要从O(1)退化到O(n)。本文从我的个人博客转来,全文除注明外原创。原文地址题目原版链接 官方中文版英文原文Gi...原创 2018-03-06 14:04:54 · 129 阅读 · 1 评论