- 博客(8)
- 收藏
- 关注
原创 Triangle
题目描述:Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given the following triangle[ [2],
2016-11-01 15:25:07 322
原创 Ugly Number II
题目描述:Write a program to find the n-th ugly number.Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. For example, 1, 2, 3, 4, 5, 6, 8, 9, 10, 12 is the sequence of
2016-10-31 16:20:20 260
原创 Coin Change
题目描述:You are given coins of different denominations and a total amount of money amount. Write a function to compute the fewest number of coins that you need to make up that amount. If that amoun
2016-10-30 19:37:17 250
原创 Arithmetic Slices
题目描述:A sequence of number is called arithmetic if it consists of at least three elements and if the difference between any two consecutive elements is the same.For example, these are arithme
2016-10-24 21:40:14 216
原创 Rotate Function
题目:Given an array of integers A and let n to be its length.Assume Bk to be an array obtained by rotating the array A k positions clock-wise, we define a "rotation function" F on A as f
2016-10-07 15:04:49 247
原创 Decode String
题目:Given an encoded string, return it's decoded string.The encoding rule is: k[encoded_string], where the encoded_string inside the square brackets is being repeated exactly k times. Note
2016-09-27 13:49:22 302
原创 Longest Palindromic Substring
题目描述:Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longest palindromic substring.
2016-09-11 20:22:22 275
原创 Longest Substring Without Repeating Characters
题目如下:Given a string, find the length of the longest substring without repeating characters.Examples:Given "abcabcbb", the answer is "abc", which the length is 3.Given "bbbbb", the
2016-09-06 13:23:48 266 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人