- 博客(4)
- 资源 (1)
- 收藏
- 关注
原创 541. Reverse String II LeetCode
题目: Given a string and an integer k, you need to reverse the first k characters for every 2k characters counting from the start of the string. If there are less than k characters left, reverse all
2017-03-26 19:30:48 273
原创 53. Maximum Subarray LeetCode
Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example, given the array [-2,1,-3,4,-1,2,1,-5,4], the contiguous subarray [4,-1,2,1] ha
2017-03-07 20:37:47 303
原创 169. Majority Element LeetCode
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 element
2017-03-07 19:53:05 305
原创 LeetCode 241. Different Ways to Add Parentheses
Given a string of numbers and operators, return all possible results from computing all the different possible ways to group numbers and operators. The valid operators are +, - and *. Example 1
2017-03-05 19:48:32 290
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人