LeetCode
文章平均质量分 63
风一样De少年
我思 故我在
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
LeetCode之旅-1
LeetCode之旅-1为了更好的学习掌握数据结构与算法,决定再网上找一些相关的题目来做,于是发现了leetcode。据说是为面试打造的,刚好也为以后的笔试做一些准备。里面的题目分为easy、medium、hard三种难易程度。我打算从易到难开始做。 做的第一道题是:Reverse String 题目内容: Write a function that takes a string as inp原创 2016-06-29 12:53:22 · 415 阅读 · 0 评论 -
LeetCode之旅-2
今天做了一道题目:Add Digits 题目内容: Given a non-negative integer num, repeatedly add all its digits until the result has only one digit.For example:Given num = 38, the process is like: 3 + 8 = 11, 1 + 1 = 2. S原创 2016-06-29 17:36:33 · 596 阅读 · 0 评论 -
LeetCode之旅-3
刚刚做了一道题目:Move Zeroes 题目内容: Given an array nums, write a function to move all 0’s to the end of it while maintaining the relative order of the non-zero elements.For example, given nums = [0, 1, 0, 3,原创 2016-07-04 14:54:59 · 429 阅读 · 0 评论
分享