![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
LeetCode
文章平均质量分 78
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 · 1034 阅读 · 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 · 684 阅读 · 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 · 452 阅读 · 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 · 727 阅读 · 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 XX O O XX X O原创 2015-11-17 14:16:34 · 765 阅读 · 0 评论