摘要:
Title: Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order. For example,Given the following matrix 阅读全文
2015年4月28日
2015年4月27日
摘要:
Title: Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string. If the la 阅读全文
摘要:
(1)Merge Intervals https://leetcode.com/problems/merge-intervals/ Given a collection of intervals, merge all overlapping intervals. For example,Given 阅读全文
2015年4月26日
摘要:
Title : Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents yo 阅读全文
2015年4月24日
摘要:
Title: Given two numbers represented as strings, return multiplication of the numbers as a string. Note: The numbers can be arbitrarily large and are 阅读全文
2015年4月23日
摘要:
Title: Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after r 阅读全文
摘要:
Title: Given an unsorted integer array, find the first missing positive integer. For example,Given [1,2,0] return 3,and [3,4,-1,1] return 2. Your algo 阅读全文
2015年4月22日
摘要:
Title: https://leetcode.com/problems/combination-sum/ Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C 阅读全文
2015年4月21日
摘要:
Title: Given a sorted array of integers, find the starting and ending position of a given target value. Your algorithm's runtime complexity must be in 阅读全文
摘要:
Title: Suppose a sorted array is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2). You are given a ta 阅读全文