Cody

# Problem 44856. Permutation Via Multiplication

Solution 2710539

Submitted on 18 Jul 2020 by Carson Foy
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   Pass
a = 0; b = 2; tf_correct = true; assert(isequal(product_is_perm(a,b),tf_correct))

count_a = 1 0 0 0 0 0 0 0 0 0 count_boi = 1 0 0 0 0 0 0 0 0 0

2   Pass
a = 15; b = 7; tf_correct = true; assert(isequal(product_is_perm(a,b),tf_correct))

count_a = 1 1 0 0 0 1 0 0 0 0 count_boi = 1 1 0 0 0 1 0 0 0 0

3   Pass
a = 1035; b = 3; tf_correct = true; assert(isequal(product_is_perm(a,b),tf_correct))

count_a = 1 1 0 1 0 1 0 0 0 0 count_boi = 1 1 0 1 0 1 0 0 0 0

4   Pass
a = 125874; b = 2; tf_correct = true; assert(isequal(product_is_perm(a,b),tf_correct))

count_a = 0 1 1 0 1 1 0 1 1 0 count_boi = 0 1 1 0 1 1 0 1 1 0

5   Pass
a = 10; b = 2; tf_correct = false; assert(isequal(product_is_perm(a,b),tf_correct))

count_a = 1 1 0 0 0 0 0 0 0 0 count_boi = 1 0 1 0 0 0 0 0 0 0

6   Pass
a = 123; b = 10; tf_correct = true; assert(isequal(product_is_perm(a,b),tf_correct))

count_a = 1 1 1 1 0 0 0 0 0 0 count_boi = 1 1 1 1 0 0 0 0 0 0

7   Pass
a = 67; b = 2; tf_correct = false; assert(isequal(product_is_perm(a,b),tf_correct))

count_a = 1 0 0 0 0 0 1 1 0 0 count_boi = 0 1 0 1 1 0 0 0 0 0

8   Pass
a = 1025874; b = 2; tf_correct = true; assert(isequal(product_is_perm(a,b),tf_correct))

count_a = 1 1 1 0 1 1 0 1 1 0 count_boi = 1 1 1 0 1 1 0 1 1 0

9   Pass
a = 459; b = 11; tf_correct = true; assert(isequal(product_is_perm(a,b),tf_correct))

count_a = 1 0 0 0 1 1 0 0 0 1 count_boi = 1 0 0 0 1 1 0 0 0 1

10   Pass
a = 461; b = 11; tf_correct = false; assert(isequal(product_is_perm(a,b),tf_correct))

count_a = 1 1 0 0 1 0 1 0 0 0 count_boi = 1 1 0 0 0 1 0 1 0 0