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


DFS

[LeetCode 90] Subsets II [Java]

2018-03-24

1. Description Given a collection of integers that might contain duplicates, nums, return all possible subsets (the power set). Note: The solution ...


DFS

[LeetCode 89] Gray Code [Java]

2018-03-22

1. Description The gray code is a binary numeral system where two successive values differ in only one bit. Given a non-negative integer n represen...