- 博客(4)
- 收藏
- 关注
原创 leetcode 313 : Super Ugly Number
1、原题如下: Write a program to find the nth super ugly number. Super ugly numbers are positive numbers whose all prime factors are in the given prime list primes of size k. For example, [1, 2, 4, 7,
2015-12-07 12:03:11 688
原创 leetcode 312 : Burst Balloons
1、原题如下: Given n balloons, indexed from 0 to n-1. Each balloon is painted with a number on it represented by array nums. You are asked to burst all the balloons. If the you burst balloon i you will ge
2015-12-05 20:15:12 691
原创 leetcode 310 : Minimum Height Trees
1、原题如下: For a undirected graph with tree characteristics, we can choose any node as the root. The result graph is then a rooted tree. Among all possible rooted trees, those with minimum height are ca
2015-12-03 16:37:59 457
原创 leetcode 309 : Best Time to Buy and Sell Stock with Cooldown
1、原题如下: Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may complete as many transactions as you like
2015-12-01 17:01:45 576
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人