DP

[LeetCode 91] Decode Ways [Java]

2018-03-26

1. Description A message containing letters from A-Z is being encoded to numbers using the following mapping: 'A' -> 1 'B' -> 2 ... 'Z' -> 26 Given...


DP

[LeetCode 62] Unique Paths [Java]

2018-02-06

1. Description 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...


DP

[LeetCode 322] Coin Change [Java]

2017-10-16

1. Description You are given coins of different denominations and a total amount of money amount. Write a function to compute the fewest number of ...


DP

[LintCode 125] Backpack II [Java]

2017-10-13

1. Description Given n items with size Ai and value Vi, and a backpack with size m. What's the maximum value can you put into the backpack? Notice ...


DP

[LintCode 92] Backpack [Java]

2017-10-12

1. Description Given n items with size Ai, an integer m denotes the size of a backpack. How full you can fill this backpack? Notice You can not ...