算法
昵称居然已经存在了
好好学习,天天向上。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Leetcode 练习——Remove Element
题目描述:Given an array and a value, remove all instances of that > value in place and return the new length.The order of elements can be changed. It doesn’t matter what you leave beyond the new length.输入例原创 2017-03-28 10:24:54 · 295 阅读 · 0 评论 -
Leetcode Num.169 -- Majority Element
题目描述: Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times. You may assume that the array is non-empty and the majority ele原创 2017-12-04 17:37:50 · 200 阅读 · 0 评论 -
Leetcode Num.168 -- Excel Sheet Column Title
题目描述: Given a positive integer, return its corresponding column title as appear in an Excel sheet. For example:1 -> A 2 -> B 3 -> C ... 26 -> Z 27 -> AA 28 -> AB 解题思路:根据规律,能看到是以26为循环的,类似于26循环制,所以,只需原创 2017-12-04 17:44:57 · 198 阅读 · 0 评论 -
Leetcode Num.38 -- Count and Say
题目描述: The count-and-say sequence is the sequence of integers with the first five terms as following: 1. 1 2. 11 3. 21 4. 1211 5. 111221 1 is read off as “one 1” or 11. 11 is r原创 2017-12-04 18:02:43 · 210 阅读 · 0 评论
分享