- 博客(7)
- 收藏
- 关注
原创 1.Two Sum
1.Two Sumleetcode第一题Given an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input would have exactly one solution, and y...
2018-12-06 22:17:47
128
原创 4.Median of Two Sorted Arrays
There are two sorted arrays nums1 and nums2 of size m and n respectively.Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).You may assume nums1 and n...
2018-08-28 10:32:08
138
原创 62. Unique Paths
A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).The robot can only move either down or right at any point in time. The robot is trying to reach the
2017-10-08 21:22:18
168
原创 53.Maximum Subarray
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]
2017-10-08 18:22:43
157
原创 647.Palindromic Substrings(动态规划)
Given a string, your task is to count how many palindromic substrings in this string.The substrings with different start indexes or end indexes are counted as different substrings even they consist
2017-10-07 19:41:12
310
原创 338.CountingBits(leetCode动态规划第一波)
Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary representation and return them as an array.Example:For num = 5 y
2017-10-07 16:51:37
224
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人