阅读更多
1 Question-17[★★]
Letter Combinations of a Phone Number
Given a digit string, return all possible letter combinations that the number could represent.
1 | public class Solution { |
2 Question-39[★★★★]
Combination Sum
Given a set of candidate numbers © (without duplicates) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.
The same repeated number may be chosen from C unlimited number of times.
1 | public class Solution { |
3 Question-46[★★★★★]
Permutations
Given a collection of distinct numbers, return all possible permutations.
1 | public class Solution { |
4 Question-78[★★★★★]
Subsets
Given a set of distinct integers, nums, return all possible subsets.
1 | class Solution { |
5 Question-79[★★★★]
Word Search
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 cell, where “adjacent” cells are those horizontally or vertically neighboring. The same letter cell may not be used more than once.
1 | class Solution { |
6 Question-90[★★★★★]
Subsets II
Given a collection of integers that might contain duplicates, nums, return all possible subsets.
1 | public class Solution { |