a*********0 发帖数: 2727 | 1 Subset那题
Submission Result: Wrong AnswerMore Details
Input: [4,1,0]
Output: [[],[0],[1],[1,0],[4],[4,0],[4,1],[4,1,0]]
Expected: [[],[0],[1],[4],[0,1],[0,4],[1,4],[0,1,4]] | b******i 发帖数: 914 | 2 Note:
Elements in a subset must be in non-descending order.
The solution set must not contain duplicate subsets.
读题
【在 a*********0 的大作中提到】 : Subset那题 : Submission Result: Wrong AnswerMore Details : Input: [4,1,0] : Output: [[],[0],[1],[1,0],[4],[4,0],[4,1],[4,1,0]] : Expected: [[],[0],[1],[4],[0,1],[0,4],[1,4],[0,1,4]]
| j*****d 发帖数: 1625 | 3 non-descending order. the key word.
you are funny | k*******q 发帖数: 5493 | 4 多大的事情啊,你DFS之前先排序就好了嘛
【在 a*********0 的大作中提到】 : Subset那题 : Submission Result: Wrong AnswerMore Details : Input: [4,1,0] : Output: [[],[0],[1],[1,0],[4],[4,0],[4,1],[4,1,0]] : Expected: [[],[0],[1],[4],[0,1],[0,4],[1,4],[0,1,4]]
|
|