Leetcoder

Leetcode Solutions

2015年12月6日星期日

Super Ugly Number

›
Write a program to find the n th  super ugly number. Super ugly numbers are positive numbers whose all prime factors are in the given pri...

Burst Balloons

›
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 bu...

Sparse Matrix Multiplication

›
Given two  sparse matrices   A  and  B , return the result of  AB . You may assume that  A 's column number is equal to  B 's row...

Minimum Height Trees

›
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 pos...
2015年11月25日星期三

Best Time to Buy and Sell Stock with Cooldown

›
Say you have an array for which the i th element is the price of a given stock on day i . Design an algorithm to find the maximum profit. ...

Additive Number

›
Additive number is a string whose digits can form additive sequence. A valid additive sequence should contain at least three numbers. Ex...
2015年11月23日星期一

Number of Islands II

›
A 2d grid map of  m  rows and  n  columns is initially filled with water. We may perform an  addLand  operation which turns the water at po...
›
主页
查看网络版本

我的简介

Chen_NLPer
查看我的完整个人资料
由 Blogger 提供支持.