
学习总结
文章平均质量分 82
huang_j_j
这个作者很懒,什么都没留下…
展开
-
Leetcode 322. Coin Change
322. 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 t...原创 2018-12-09 22:40:19 · 145 阅读 · 0 评论 -
Leetcode 62. Unique Paths
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 try...原创 2018-11-25 21:15:36 · 133 阅读 · 0 评论 -
Leetcode 213. House Robber II
213. House Robber II题目You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed. All houses at this place are arranged in a circle. That m...原创 2018-11-17 10:55:53 · 134 阅读 · 0 评论 -
Leetcode 120. Triangle
120. 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], ...原创 2018-11-05 13:02:07 · 140 阅读 · 0 评论 -
Leetcode 32. Longest Valid Parentheses
32. Longest Valid Parentheses题目Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring.Example 1:Input: "(()"Output: 2...原创 2018-11-10 18:26:15 · 121 阅读 · 0 评论 -
Leetcode 55. Jump Game
55. Jump Game题目Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximum jump length at that position....原创 2018-10-21 19:51:13 · 102 阅读 · 0 评论 -
Leetcode 64. Minimum Path Sum
64. Minimum Path Sum题目Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.Note: You can only move ei...原创 2018-10-28 19:29:46 · 114 阅读 · 0 评论 -
Leetcode 684. Redundant Connection
684. Redundant Connection题目In this problem, a tree is an undirected graph that is connected and has no cycles.The given input is a graph that started as a tree with N nodes (with distinct values 1,...原创 2018-10-14 21:40:39 · 224 阅读 · 0 评论 -
Leetcode 310. Minimum Height Trees
310. 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 possible rooted trees, those with m...原创 2018-10-07 22:23:53 · 138 阅读 · 0 评论 -
Leetcode 133. Clone Graph
133. Clone Graph题目Given the head of a graph, return a deep copy (clone) of the graph. Each node in the graph contains a label (int) and a list (List[UndirectedGraphNode]) of its neighbors. There is ...原创 2018-09-30 21:56:52 · 152 阅读 · 0 评论 -
Leetcode 207. Course Schedule
207. Course Schedule题目There are a total of n courses you have to take, labeled from 0 to n-1.Some courses may have prerequisites, for example to take course 0 you have to first take course 1, which...原创 2018-09-23 21:14:40 · 150 阅读 · 0 评论 -
Leetcode 241. Different Ways to Add Parentheses
241. Different Ways to Add Parentheses题目Given a string of numbers and operators, return all possible results from computing all the different possible ways to group numbers and operators. The va...原创 2018-09-16 16:12:14 · 118 阅读 · 0 评论 -
Leetcode 240. Search a 2D Matrix II
Leetcode 240. Search a 2D Matrix II题目Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:Integers in each row are sorted in asc...原创 2018-09-09 17:27:20 · 617 阅读 · 0 评论 -
Capacitated Facility Location Problem
Capacitated Facility Location Problem问题描述Suppose there are n facilities and m customers. We wish to choose:which of the n facilities to openthe assignment of customers to facilitiesThe object...原创 2018-12-23 21:25:48 · 310 阅读 · 0 评论