Cody

# Problem 2417. all possible subsets of set

Solution 1952626

Submitted on 29 Sep 2019
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Fail
x = [1 1 1]; y ={[],[1]}; assert(isequal(your_fcn_name(x),y))

Error in solution: Line: 2 Column: 30 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

2   Fail
x=[1]; y={[],[1]}; assert(isequal(your_fcn_name(x),y))

Error in solution: Line: 2 Column: 30 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

3   Fail
x=[1 2 3]; y ={[],[1],[2],[3],[1 2],[1 3],[2 3],[1 2 3]}; assert(isequal(your_fcn_name(x),y))

Error in solution: Line: 2 Column: 30 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

4   Fail
x=[1 1 2 3]; y ={[],[1],[2],[3],[1 2],[1 3],[2 3],[1 2 3]}; assert(isequal(your_fcn_name(x),y))

Error in solution: Line: 2 Column: 30 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

5   Fail
x=[]; y={[]}; assert(isequal(your_fcn_name(x),y))

Error in solution: Line: 2 Column: 30 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

6   Fail
x=[nan nan]; % matlab considers them non-unique, but i don't y={[],[nan]}; assert(isequalwithequalnans(your_fcn_name(x),y))

Error in solution: Line: 2 Column: 30 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

7   Fail
x=[nan nan 1]; y={[],[nan],[1],[nan 1]}; assert(isequalwithequalnans(your_fcn_name(x),y))

Error in solution: Line: 2 Column: 30 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.