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


DFS

[LeetCode 79] Word Search [Java]

2018-03-04

1. Description Given a 2D board and a word, find if the word exists in the grid. The word can be constructed from letters of sequentially adjacent ...


DFS

[LeetCode 78] Subsets [Java]

2018-03-02

1. Description Given a set of distinct integers, nums, return all possible subsets (the power set). Note: The solution set must not contain duplica...


DFS

[LeetCode 46] Permutations[Java]

2018-01-09

1. Description Given a collection of distinct numbers, return all possible permutations. 2. Example [1,2,3] have the following permutations: [...