
LeetCode
文章平均质量分 80
ahfytao
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
LeetCode Remove Duplicates from Sorted Array(C语言O(n)解法)
题目: Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra space for another array, you must do this in place原创 2015-03-10 15:03:38 · 1103 阅读 · 0 评论 -
[leetcode] Group Anagrams
Given an array of strings, group anagrams together. For example, given: ["eat", "tea", "tan", "ate", "nat", "bat"], Return: [ ["ate", "eat","tea"], ["nat","tan"], ["bat"] ] Note:原创 2015-09-08 08:54:10 · 735 阅读 · 0 评论 -
[leetcode] First Bad Version
You are a product manager and currentlyleading a team to develop a new product. Unfortunately, the latest version ofyour product fails the quality check. Since each version is developed based onthe pr原创 2015-09-09 10:35:02 · 495 阅读 · 0 评论 -
[leetcode][C++]Find Median from Data Stream
原题如下: Median is the middle value in an ordered integer list. If the size of the list is even, there is no middle value. So the median is the mean of the two middle value. Examples: [2,3,4] , the原创 2015-11-06 16:15:47 · 793 阅读 · 0 评论 -
leetcode[C++]Surrounded Regions
Given a 2D board containing 'X' and 'O', capture all regions surrounded by 'X'. A region is captured by flipping all 'O's into 'X's in that surrounded region. For example, X X X X X O O X X X O原创 2015-11-17 14:16:34 · 810 阅读 · 0 评论