- 博客(6)
- 收藏
- 关注
原创 C++ Review Inheritance&Friend
1. Public Inheritance –Thepublic and protected members of the base class are inherited as public and protected members of the derived class. –Privatemembers of the base class cannot be accessed by t
2012-03-26 12:12:07 915
原创 LeetCode: Anagrams
Given an array of strings, return all groups of strings that are anagrams. Note: All inputs will be in lower-case. #include #include #include #include using namespace::std; class Solution { pu
2012-03-21 13:25:25 2589
原创 LeetCode: 4 Sum
Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the array which gives the sum of target. Note:
2012-03-21 06:22:44 2169
原创 LeetCode: 3 Sum Closest
Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. You may assume that each input would have exa
2012-03-21 03:15:54 2756
原创 LeetCode: 3Sum
Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero. Note: Elements in a triplet
2012-03-21 02:49:01 5679 4
原创 Remove Duplicates from Sorted Array
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 with
2012-03-02 07:10:57 1012
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人