Cody

Problem 487. Find perfect placement of non-rotating dominoes (easier)

Solution 3360263

Submitted on 24 Oct 2020 by Sibi
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
list = [ 1 5 2 1 2 2 3 2 4 8 5 4 5 5 10 3]; correct = [8 4 3 2 1 7 6 5]; assert(isequal(findPerfectOrderedDominoes(list),correct))

k = 15 k = 23 k = 13 k = 19 k = 25 k = 18 k = 16 k = 19 k = 20 k = 15 k = 25 k = 11 k = 16 k = 18 k = 19 k = 22 k = 19 k = 15 k = 14 k = 24 k = 16 k = 13 k = 14 k = 23 k = 12 k = 8 k = 23 k = 23 k = 15 k = 14 k = 17 k = 14 k = 13 k = 19 k = 22 k = 22 k = 10 k = 19 k = 17 k = 11 k = 22 k = 20 k = 20 k = 15 k = 15 k = 10 k = 19 k = 22 k = 12 k = 17 k = 17 k = 26 k = 9 k = 16 k = 21 k = 22 k = 15 k = 17 k = 25 k = 25 k = 27 k = 18 k = 25 k = 15 k = 19 k = 15 k = 16 k = 22 k = 15 k = 16 k = 17 k = 16 k = 18 k = 19 k = 16 k = 15 k = 21 k = 22 k = 11 k = 17 k = 23 k = 21 k = 19 k = 17 k = 25 k = 14 k = 7 k = 13 k = 16 k = 19 k = 16 k = 24 k = 20 k = 13 k = 20 k = 22 k = 21 k = 13 k = 24 k = 13 k = 21 k = 11 k = 21 k = 25 k = 23 k = 19 k = 13 k = 23 k = 14 k = 20 k = 21 k = 17 k = 23 k = 9 k = 15 k = 16 k = 10 k = 13 k = 21 k = 19 k = 18 k = 16 k = 25 k = 16 k = 22 k = 21 k = 23 k = 16 k = 25 k = 17 k = 12 k = 16 k = 26 k = 9 k = 19 k = 21 k = 19 k = 20 k = 13 k = 16 k = 5 k = 18 k = 19 k = 28 k = 22 k = 16 k = 22 k = 15 k = 18 k = 24 k = 19 k = 17 k = 16 k = 6 k = 23 k = 14 k = 16 k = 27 k = 26 k = 18 k = 16 k = 22 k = 24 k = 19 k = 18 k = 20 k = 17 k = 21 k = 25 k = 17 k = 17 k = 21 k = 14 k = 14 k = 22 k = 21 k = 17 k = 21 k = 22 k = 20 k = 25 k = 18 k = 21 k = 25 k = 20 k = 21 k = 18 k = 18 k = 18 k = 7 k = 15 k = 23 k = 12 k = 15 k = 7 k = 13 k = 14 k = 22 k = 22 k = 22 k = 21 k = 20 k = 24 k = 14 k = 22 k = 18 k = 21 k = 17 k = 16 k = 18 k = 11 k = 14 k = 18 k = 15 k = 22 k = 13 k = 16 k = 16 k = 10 k = 8 k = 17 k = 17 k = 19 k = 11 k = 17 k = 20 k = 16 k = 19 k = 23 k = 22 k = 19 k = 23 k = 22 k = 21 k = 21 k = 19 k = 11 k = 22 k = 15 k = 19 k = 14 k = 22 k = 10 k = 21 k = 21 k = 17 k = 17 k = 20 k = 18 k = 20 k = 16 k = 13 k = 27 k = 17 k = 14 k = 17 k = 22 k = 24 k = 22 k = 23 k = 20 k = 13 k = 19 k = 14 k = 26 k = 20 k = 23 k = 18 k = 15 k = 23 k = 13 k = 16 k = 23 k = 21 k = 12 k = 13 k = 10 k = 18 k = 16 k = 25 k = 14 k = 24 k = 23 k = 17 k = 22 k = 24 k = 19 k = 18 k = 19 k = 26 k = 22 k = 21 k = 23 k = 20 k = 10 k = 17 k = 22 k = 15 k = 19 k = 23 k = 13 k = 23 k = 15 k = 22 k = 11 k = 14 k = 27 k = 18 k = 18 k = 15 k = 26 k = 18 k = 14 k = 23 k = 16 k = 21 k = 26 k = 15 k = 20 k = 16 k = 22 k = 15 k = 9 k = 10 k = 18 k = 23 k = 18 k = 16 k = 19 k = 28 k = 24 k = 10 k = 22 k = 19 k = 19 k = 18 k = 19 k = 6 k = 16 k = 11 k = 20 k = 20 k = 22 k = 24 k = 20 k = 25 k = 25 k = 22 k = 15 k = 16 k = 5 k = 25 k = 9 k = 19 k = 15 k = 16 k = 17 k = 26 k = 24 k = 13 k = 18 k = 11 k = 21 k = 20 k = 24 k = 16 k = 20 k = 20 k = 18 k = 13 k = 18 k = 19 k = 17 k = 21 k = 13 k = 19 k = 13 k = 17 k = 12 k = 22 k = 24 k = 18 k = 17 k = 20 k = 16 k = 8 k = 16 k = 17 k = 22 k = 14 k = 18 k = 16 k = 25 k = 15 k = 25 k = 14 k = 18 k = 26 k = 12 k = 18 k = 17 k = 16 k = 21 k = 19 k = 10 k = 10 k = 15 k = 26 k = 17 k = 17 k = 22 k = 18 k = 18 k = 13 k = 17 k = 20 k = 15 k = 15 k = 25 k = 13 k = 18 k = 20 k = 18 k = 17 k = 19 k = 15 k = 17 k = 20 k = 17 k = 24 k = 20 k = 15 k = 18 k = 22 k = 12 k = 21 k = 13 k = 13 k = 14 k = 9 k = 19 k = 23 k = 22 k = 11 k = 17 k = 16 k = 23 k = 21 k = 21 k = 20 k = 21 k = 28 k = 23 k = 24 k = 17 k = 19 k = 11 k = 22 k = 18 k = 18 k = 20 k = 23 k = 24 k = 18 k = 23 k = 15 k = 26 k = 20 k = 10 k = 14 k = 28 k = 24 k = 11 k = 21 k = 13 k = 11 k = 28 k = 19 k = 14 k = 14 k = 18 k = 13 k = 18 k = 16 k = 11 k = 16 k = 17 k = 15 k = 18 k = 26 k = 22 k = 16 k = 25 k = 14 k = 20 k = 23 k = 24 k = 22 k = 17 k = 15 k = 26 k = 10 k = 18 k = 20 k = 29 k = 14 k = 18 k = 25 k = 24 k = 24 k = 22 k = 18 k = 19 k = 22 k = 20 k = 19 k = 21 k = 21 k = 20 k = 17 k = 26 k = 21 k = 11 k = 18 k = 14 k = 21 k = 8 k = 20 k = 18 k = 20 k = 25 k = 19 k = 17 k = 21 k = 21 k = 9 k = 14 k = 8 k = 18 k = 22 k = 22 k = 21 k = 8 k = 15 k = 11 k = 16 k = 24 k = 27 k = 23 k = 9 k = 27 k = 15 k = 20 k = 19 k = 18 k = 22 k = 13 k = 11 k = 22 k = 18 k = 21 k = 22 k = 25 k = 12 k = 19 k = 22 k = 14 k = 25 k = 8 k = 20 k = 19 k = 18 k = 15 k = 13 k = 14 k = 14 k = 19 k = 10 k = 23 k = 24 k = 20 k = 22 k = 24 k = 11 k = 17 k = 14 k = 22 k = 19 k = 21 k = 19 k = 23 k = 23 k = 15 k = 17 k = 22 k = 27 k = 10 k = 25 k = 23 k = 18 k = 20 k = 24 k = 16 k = 26 k = 23 k = 15 k = 18 k = 24 k = 24 k = 24 k = 24 k = 21 k = 20 k = 20 k = 21 k = 19 k = 17 k = 18 k = 14 k = 17 k = 12 k = 22 k = 13 k = 24 k = 20 k = 24 k = 13 k = 26 k = 20 k = 25 k = 12 k = 15 k = 19 k = 15 k = 24 k = 21 k = 25 k = 15 k = 22 k = 21 k = 17 k = 19 k = 15 k = 23 k = 20 k = 17 k = 26 k = 18 k = 18 k = 12 k = 12 k = 21 k = 13 k = 19 k = 23 k = 14 k = 22 k = 24 k = 16 k = 19 k = 17 k = 13 k = 21 k = 16 k = 9 k = 12 k = 15 k = 21 k = 13 k = 12 k = 16 k = 25 k = 23 k = 19 k = 19 k = 12 k = 20 k = 15 k = 22 k = 12 k = 9 k = 11 k = 23 k = 17 k = 21 k = 17 k = 15 k = 14 k = 19 k = 15 k = 12 k = 20 k = 15 k = 16 k = 21 k = 20 k = 26 k = 25 k = 18 k = 22 k = 16 k = 14 k = 14 k = 24 k = 17 k = 16 k = 18 k = 18 k = 19 k = 21 k = 19 k = 12 k = 21 k = 17 k = ...

2   Pass
list = [ 1 6 2 2 2 7 7 1 7 8 8 10 10 2 10 10]; correct = [5 6 8 7 2 3 4 1]; assert(isequal(findPerfectOrderedDominoes(list),correct))

k = 35 k = 29 k = 34 k = 42 k = 38 k = 24 k = 41 k = 29 k = 35 k = 27 k = 12 k = 13 k = 40 k = 35 k = 29 k = 28 k = 29 k = 35 k = 38 k = 31 k = 39 k = 36 k = 26 k = 30 k = 34 k = 28 k = 28 k = 23 k = 38 k = 26 k = 26 k = 32 k = 27 k = 31 k = 35 k = 28 k = 34 k = 37 k = 19 k = 19 k = 41 k = 37 k = 15 k = 23 k = 23 k = 35 k = 34 k = 29 k = 31 k = 41 k = 21 k = 34 k = 44 k = 28 k = 36 k = 24 k = 18 k = 30 k = 26 k = 23 k = 9 k = 37 k = 15 k = 28 k = 25 k = 14 k = 22 k = 27 k = 31 k = 31 k = 34 k = 28 k = 20 k = 31 k = 22 k = 17 k = 38 k = 15 k = 23 k = 34 k = 24 k = 41 k = 19 k = 36 k = 26 k = 41 k = 21 k = 17 k = 18 k = 37 k = 21 k = 13 k = 15 k = 19 k = 18 k = 31 k = 29 k = 32 k = 39 k = 30 k = 23 k = 34 k = 30 k = 16 k = 38 k = 34 k = 39 k = 28 k = 23 k = 24 k = 7 k = 29 k = 28 k = 36 k = 27 k = 29 k = 13 k = 16 k = 31 k = 28 k = 35 k = 34 k = 24 k = 31 k = 37 k = 26 k = 39 k = 36 k = 31 k = 19 k = 25 k = 39 k = 21 k = 17 k = 20 k = 35 k = 22 k = 31 k = 21 k = 21 k = 18 k = 24 k = 19 k = 42 k = 21 k = 20 k = 31 k = 20 k = 42 k = 16 k = 13 k = 41 k = 29 k = 20 k = 14 k = 26 k = 31 k = 21 k = 20 k = 27 k = 24 k = 29 k = 31 k = 29 k = 19 k = 29 k = 29 k = 36 k = 34 k = 17 k = 27 k = 27 k = 31 k = 29 k = 8 k = 34 k = 31 k = 38 k = 31 k = 19 k = 44 k = 26 k = 15 k = 19 k = 34 k = 21 k = 29 k = 29 k = 24 k = 28 k = 21 k = 13 k = 39 k = 12 k = 30 k = 13 k = 30 k = 16 k = 36 k = 19 k = 31 k = 17 k = 42 k = 17 k = 30 k = 23 k = 25 k = 31 k = 23 k = 38 k = 41 k = 19 k = 23 k = 25 k = 29 k = 23 k = 17 k = 25 k = 34 k = 33 k = 37 k = 27 k = 9 k = 42 k = 29 k = 29 k = 22 k = 34 k = 35 k = 23 k = 33 k = 16 k = 27 k = 16 k = 23 k = 34 k = 42 k = 23 k = 39 k = 30 k = 29 k = 30 k = 30 k = 31 k = 23 k = 16 k = 25 k = 41 k = 29 k = 29 k = 41 k = 31 k = 30 k = 37 k = 31 k = 27 k = 32 k = 22 k = 26 k = 21 k = 23 k = 27 k = 30 k = 34 k = 31 k = 34 k = 27 k = 38 k = 32 k = 44 k = 32 k = 29 k = 27 k = 19 k = 34 k = 29 k = 29 k = 13 k = 31 k = 19 k = 18 k = 30 k = 45 k = 24 k = 33 k = 18 k = 21 k = 43 k = 28 k = 33 k = 36 k = 33 k = 27 k = 24 k = 23 k = 22 k = 25 k = 14 k = 34 k = 31 k = 34 k = 36 k = 21 k = 21 k = 20 k = 16 k = 42 k = 15 k = 19 k = 34 k = 27 k = 37 k = 27 k = 17 k = 24 k = 26 k = 29 k = 27 k = 31 k = 25 k = 31 k = 30 k = 32 k = 27 k = 26 k = 16 k = 33 k = 28 k = 18 k = 15 k = 19 k = 25 k = 34 k = 35 k = 24 k = 40 k = 25 k = 36 k = 31 k = 28 k = 25 k = 34 k = 19 k = 25 k = 28 k = 43 k = 18 k = 31 k = 23 k = 41 k = 43 k = 22 k = 24 k = 20 k = 20 k = 23 k = 37 k = 20 k = 18 k = 40 k = 32 k = 22 k = 31 k = 31 k = 25 k = 28 k = 31 k = 44 k = 26 k = 25 k = 35 k = 17 k = 32 k = 30 k = 29 k = 17 k = 27 k = 15 k = 30 k = 21 k = 31 k = 24 k = 26 k = 26 k = 29 k = 23 k = 27 k = 30 k = 41 k = 31 k = 32 k = 22 k = 34 k = 11 k = 23 k = 35 k = 21 k = 26 k = 35 k = 20 k = 22 k = 36 k = 20 k = 24 k = 37 k = 21 k = 40 k = 28 k = 39 k = 34 k = 24 k = 39 k = 30 k = 17 k = 33 k = 19 k = 25 k = 23 k = 30 k = 29 k = 19 k = 46 k = 29 k = 38 k = 43 k = 9 k = 17 k = 26 k = 6 k = 18 k = 21 k = 16 k = 31 k = 26 k = 35 k = 30 k = 24 k = 25 k = 31 k = 31 k = 30 k = 20 k = 29 k = 24 k = 32 k = 42 k = 44 k = 40 k = 18 k = 26 k = 44 k = 29 k = 25 k = 33 k = 27 k = 34 k = 37 k = 30 k = 35 k = 8 k = 31 k = 30 k = 15 k = 37 k = 36 k = 31 k = 39 k = 34 k = 27 k = 29 k = 27 k = 8 k = 26 k = 45 k = 22 k = 33 k = 22 k = 16 k = 33 k = 31 k = 32 k = 25 k = 36 k = 22 k = 30 k = 35 k = 12 k = 25 k = 5 k = 13 k = 25 k = 31 k = 19 k = 14 k = 28 k = 30 k = 27 k = 37 k = 36 k = 10 k = 20 k = 11 k = 37 k = 19 k = 30 k = 9 k = 27 k = 21 k = 18 k = 19 k = 23 k = 23 k = 27 k = 18 k = 39 k = 24 k = 30 k = 31 k = 29 k = 25 k = 22 k = 32 k = 31 k = 25 k = 29 k = 20 k = 24 k = 33 k = 23 k = 26 k = 33 k = 22 k = 40 k = 39 k = 30 k = 29 k = 27 k = 34 k = 25 k = 22 k = 23 k = 26 k = 30 k = 27 k = 23 k = 27 k = 33 k = 29 k = 15 k = 38 k = 38 k = 34 k = 15 k = 31 k = 32 k = 27 k = 26 k = 20 k = 33 k = 27 k = 21 k = 11 k = 32 k = 37 k = 17 k = 39 k = 17 k = 10 k = 32 k = 29 k = 46 k = 31 k = 43 k = 22 k = 27 k = 31 k = 22 k = 29 k = 31 k = 16 k = 22 k = 23 k = 15 k = 39 k = 27 k = 29 k = 33 k = 13 k = 28 k = 26 k = 41 k = 19 k = 41 k = 36 k = 29 k = 39 k = 43 k = 27 k = 23 k = 39 k = 24 k = 17 k = 27 k = 39 k = 40 k = 17 k = 27 k = 27 k = 35 k = 38 k = 27 k = 27 k = 36 k = 18 k = 21 k = 29 k = 38 k = 17 k = 22 k = 19 k = 28 k = 35 k = 16 k = 27 k = 32 k = 24 k = 44 k = 33 k = 20 k = 38 k = 19 k = 32 k = 20 k = 24 k = 21 k = 36 k = 35 k = 11 k = 25 k = 32 k = 19 k = 24 k = 17 k = 19 k = 37 k = 36 k = 22 k = 20 k = 35 k = 26 k = 30 k = 24 k = 29 k = 23 k = 22 k = 34 k = 26 k = 35 k = 43 k = 19 k = 19 k = 19 k = 15 k = 31 k = 38 k = 41 k = 22 k = 14 k = 29 k = 25 k = 29 k = 24 k = 17 k = 42 k = 31 k = 42 k = 19 k = 29 k = 17 k = 19 k = 21 k = 24 k = 26 k = 25 k = 36 k = 27 k = 27 k = 27 k = 20 k = 30 k = 29 k = 35 k = 18 k = 35 k = 32 k = 39 k = 15 k = 21 k = 35 k = 27 k = 24 k = 35 k = 31 k = 11 k = 29 k = 17 k = 23 k = 32 k = 31 k = 29 k = 18 k = 22 k = 35 k = 12 k = ...

3   Pass
list = [1 1 1 7 2 4 4 6 5 1 6 2 7 4 7 5]; correct = [8 5 1 2 7 4 6 3]; assert(isequal(findPerfectOrderedDominoes(list),correct))

k = 12 k = 25 k = 13 k = 12 k = 20 k = 14 k = 20 k = 22 k = 16 k = 14 k = 23 k = 12 k = 11 k = 19 k = 17 k = 12 k = 19 k = 15 k = 14 k = 15 k = 22 k = 19 k = 12 k = 26 k = 6 k = 21 k = 20 k = 12 k = 19 k = 15 k = 4 k = 21 k = 26 k = 24 k = 22 k = 20 k = 15 k = 18 k = 23 k = 18 k = 18 k = 21 k = 16 k = 11 k = 24 k = 24 k = 14 k = 11 k = 25 k = 9 k = 16 k = 14 k = 20 k = 14 k = 22 k = 20 k = 29 k = 22 k = 26 k = 29 k = 5 k = 21 k = 15 k = 20 k = 17 k = 14 k = 20 k = 18 k = 29 k = 20 k = 22 k = 21 k = 14 k = 24 k = 14 k = 13 k = 14 k = 22 k = 15 k = 18 k = 26 k = 14 k = 14 k = 18 k = 17 k = 11 k = 22 k = 25 k = 14 k = 10 k = 17 k = 8 k = 13 k = 14 k = 25 k = 19 k = 18 k = 12 k = 26 k = 14 k = 3 k = 15 k = 19 k = 22 k = 12 k = 20 k = 13 k = 16 k = 11 k = 27 k = 10 k = 15 k = 14 k = 9 k = 24 k = 20 k = 22 k = 22 k = 22 k = 18 k = 18 k = 16 k = 20 k = 25 k = 26 k = 19 k = 25 k = 22 k = 22 k = 19 k = 18 k = 19 k = 16 k = 12 k = 17 k = 29 k = 18 k = 13 k = 20 k = 20 k = 24 k = 18 k = 12 k = 15 k = 19 k = 24 k = 19 k = 22 k = 20 k = 22 k = 8 k = 23 k = 14 k = 20 k = 12 k = 18 k = 20 k = 21 k = 5 k = 17 k = 19 k = 16 k = 17 k = 5 k = 13 k = 13 k = 18 k = 22 k = 29 k = 18 k = 26 k = 21 k = 15 k = 22 k = 17 k = 8 k = 17 k = 19 k = 21 k = 18 k = 24 k = 16 k = 15 k = 17 k = 23 k = 19 k = 15 k = 20 k = 10 k = 18 k = 22 k = 26 k = 20 k = 17 k = 24 k = 26 k = 24 k = 11 k = 16 k = 21 k = 26 k = 27 k = 19 k = 24 k = 11 k = 18 k = 23 k = 20 k = 23 k = 13 k = 18 k = 18 k = 15 k = 20 k = 12 k = 18 k = 11 k = 20 k = 23 k = 5 k = 13 k = 15 k = 10 k = 20 k = 11 k = 24 k = 19 k = 23 k = 26 k = 26 k = 15 k = 20 k = 13 k = 22 k = 22 k = 17 k = 28 k = 25 k = 19 k = 9 k = 15 k = 23 k = 15 k = 17 k = 18 k = 14 k = 16 k = 14 k = 13 k = 18 k = 11 k = 18 k = 18 k = 18 k = 11 k = 8 k = 16 k = 24 k = 21 k = 19 k = 23 k = 20 k = 12 k = 19 k = 20 k = 17 k = 18 k = 9 k = 15 k = 14 k = 23 k = 18 k = 15 k = 15 k = 17 k = 18 k = 14 k = 16 k = 19 k = 23 k = 14 k = 21 k = 16 k = 8 k = 7 k = 8 k = 13 k = 9 k = 6 k = 11 k = 10 k = 22 k = 19 k = 25 k = 9 k = 16 k = 26 k = 16 k = 26 k = 6 k = 17 k = 21 k = 19 k = 24 k = 11 k = 23 k = 10 k = 15 k = 20 k = 14 k = 15 k = 13 k = 16 k = 17 k = 17 k = 16 k = 22 k = 18 k = 15 k = 16 k = 13 k = 20 k = 23 k = 10 k = 7 k = 27 k = 17 k = 15 k = 10 k = 14 k = 14 k = 16 k = 19 k = 18 k = 19 k = 17 k = 11 k = 16 k = 12 k = 15 k = 20 k = 24 k = 11 k = 11 k = 24 k = 15 k = 18 k = 10 k = 17 k = 26 k = 26 k = 12 k = 19 k = 25 k = 23 k = 18 k = 18 k = 18 k = 10 k = 16 k = 8 k = 19 k = 4 k = 14 k = 20 k = 19 k = 9 k = 8 k = 25 k = 14 k = 18 k = 10 k = 10 k = 18 k = 16 k = 21 k = 19 k = 13 k = 22 k = 20 k = 9 k = 23 k = 18 k = 18 k = 12 k = 18 k = 22 k = 16 k = 8 k = 22 k = 9 k = 23 k = 12 k = 14 k = 15 k = 23 k = 14 k = 11 k = 17 k = 13 k = 16 k = 17 k = 20 k = 20 k = 21 k = 17 k = 12 k = 19 k = 17 k = 23 k = 22 k = 17 k = 23 k = 24 k = 18 k = 21 k = 26 k = 12 k = 18 k = 25 k = 20 k = 9 k = 21 k = 25 k = 18 k = 26 k = 4 k = 16 k = 13 k = 7 k = 20 k = 14 k = 13 k = 24 k = 16 k = 21 k = 25 k = 13 k = 23 k = 17 k = 19 k = 18 k = 15 k = 10 k = 19 k = 20 k = 15 k = 22 k = 17 k = 22 k = 12 k = 14 k = 17 k = 13 k = 21 k = 14 k = 16 k = 23 k = 18 k = 16 k = 21 k = 14 k = 11 k = 22 k = 10 k = 11 k = 21 k = 13 k = 28 k = 9 k = 23 k = 21 k = 8 k = 19 k = 13 k = 9 k = 14 k = 23 k = 26 k = 21 k = 10 k = 18 k = 28 k = 11 k = 16 k = 24 k = 22 k = 12 k = 28 k = 28 k = 20 k = 18 k = 16 k = 5 k = 19 k = 26 k = 23 k = 24 k = 18 k = 11 k = 14 k = 24 k = 22 k = 16 k = 12 k = 20 k = 9 k = 14 k = 20 k = 27 k = 19 k = 18 k = 26 k = 14 k = 20 k = 20 k = 19 k = 14 k = 16 k = 9 k = 18 k = 18 k = 10 k = 20 k = 13 k = 18 k = 13 k = 13 k = 12 k = 16 k = 20 k = 22 k = 14 k = 14 k = 20 k = 15 k = 23 k = 20 k = 16 k = 13 k = 20 k = 13 k = 6 k = 19 k = 16 k = 29 k = 16 k = 22 k = 23 k = 18 k = 15 k = 15 k = 16 k = 16 k = 22 k = 10 k = 16 k = 21 k = 16 k = 19 k = 19 k = 15 k = 13 k = 17 k = 13 k = 22 k = 12 k = 18 k = 16 k = 15 k = 21 k = 20 k = 15 k = 25 k = 17 k = 23 k = 23 k = 12 k = 18 k = 19 k = 27 k = 17 k = 19 k = 19 k = 16 k = 15 k = 15 k = 26 k = 21 k = 25 k = 23 k = 27 k = 13 k = 24 k = 23 k = 17 k = 13 k = 21 k = 14 k = 23 k = 19 k = 25 k = 18 k = 19 k = 16 k = 23 k = 22 k = 16 k = 17 k = 13 k = 11 k = 24 k = 18 k = 16 k = 7 k = 26 k = 19 k = 20 k = 26 k = 16 k = 12 k = 10 k = 16 k = 18 k = 8 k = 18 k = 20 k = 21 k = 23 k = 19 k = 15 k = 16 k = 20 k = 22 k = 15 k = 21 k = 18 k = 17 k = 20 k = 23 k = 14 k = 20 k = 17 k = 14 k = 17 k = 10 k = 23 k = 12 k = 18 k = 14 k = 10 k = 11 k = 23 k = 9 k = 9 k = 21 k = 16 k = 17 k = 21 k = 22 k = 12 k = 19 k = 19 k = 13 k = 13 k = 25 k = 15 k = 12 k = 18 k = 27 k = 14 k = 24 k = 20 k = 21 k = 23 k = 20 k = 14 k = 11 k = 10 k = 5 k = 17 k = 16 k = 12 k = 30 k = 20 k = 15 k = 28 k = 13 k = 19 k = 17 k = 7 k = 16 k = 12 k = 18 k = 11 k = 16 k = 20 k = 14 k = 15 k = 26 k = 18 k = 7 k = 15 k = 22 k = 19 k = 25 k = 13 k = 9 k = 20 k = 15 k = 11 k = 16 k = 12 k = 20 k = ...

4   Pass
list = [1 10 3 10 5 3 6 9 7 6 8 7 8 8 9 1 10 5]; correct = [7 6 5 4 8 1 9 3 2]; assert(isequal(findPerfectOrderedDominoes(list),correct))

k = 18 k = 25 k = 27 k = 30 k = 26 k = 22 k = 26 k = 32 k = 17 k = 18 k = 18 k = 24 k = 25 k = 19 k = 36 k = 18 k = 11 k = 27 k = 16 k = 24 k = 27 k = 26 k = 29 k = 22 k = 14 k = 27 k = 29 k = 23 k = 23 k = 26 k = 25 k = 24 k = 20 k = 20 k = 20 k = 33 k = 31 k = 17 k = 35 k = 35 k = 27 k = 24 k = 24 k = 24 k = 21 k = 21 k = 23 k = 17 k = 20 k = 29 k = 22 k = 37 k = 22 k = 21 k = 15 k = 38 k = 35 k = 33 k = 15 k = 25 k = 30 k = 23 k = 17 k = 24 k = 34 k = 24 k = 15 k = 29 k = 30 k = 20 k = 18 k = 39 k = 22 k = 18 k = 25 k = 25 k = 27 k = 25 k = 16 k = 24 k = 27 k = 23 k = 38 k = 40 k = 15 k = 6 k = 20 k = 35 k = 28 k = 32 k = 23 k = 30 k = 12 k = 22 k = 33 k = 31 k = 19 k = 28 k = 32 k = 20 k = 20 k = 32 k = 27 k = 23 k = 22 k = 23 k = 19 k = 20 k = 17 k = 22 k = 32 k = 24 k = 30 k = 23 k = 30 k = 26 k = 29 k = 37 k = 21 k = 33 k = 20 k = 20 k = 23 k = 24 k = 22 k = 19 k = 26 k = 29 k = 34 k = 32 k = 18 k = 24 k = 30 k = 25 k = 31 k = 18 k = 27 k = 32 k = 23 k = 19 k = 25 k = 21 k = 26 k = 14 k = 27 k = 32 k = 31 k = 29 k = 26 k = 32 k = 22 k = 28 k = 13 k = 23 k = 27 k = 22 k = 30 k = 27 k = 29 k = 15 k = 38 k = 30 k = 22 k = 32 k = 28 k = 10 k = 15 k = 23 k = 31 k = 18 k = 18 k = 22 k = 19 k = 25 k = 27 k = 14 k = 36 k = 20 k = 30 k = 15 k = 29 k = 22 k = 24 k = 28 k = 35 k = 25 k = 27 k = 27 k = 23 k = 21 k = 18 k = 29 k = 25 k = 31 k = 39 k = 22 k = 27 k = 16 k = 22 k = 23 k = 26 k = 37 k = 28 k = 19 k = 25 k = 29 k = 22 k = 27 k = 26 k = 18 k = 25 k = 26 k = 24 k = 31 k = 21 k = 17 k = 29 k = 30 k = 14 k = 34 k = 21 k = 27 k = 28 k = 33 k = 23 k = 26 k = 29 k = 28 k = 28 k = 25 k = 20 k = 13 k = 21 k = 28 k = 20 k = 31 k = 24 k = 36 k = 20 k = 31 k = 25 k = 15 k = 28 k = 27 k = 24 k = 22 k = 26 k = 12 k = 33 k = 26 k = 26 k = 16 k = 25 k = 32 k = 34 k = 26 k = 26 k = 25 k = 14 k = 27 k = 32 k = 32 k = 19 k = 20 k = 38 k = 25 k = 20 k = 39 k = 22 k = 29 k = 21 k = 28 k = 25 k = 18 k = 30 k = 30 k = 11 k = 12 k = 27 k = 16 k = 14 k = 12 k = 16 k = 25 k = 13 k = 20 k = 20 k = 29 k = 18 k = 14 k = 29 k = 20 k = 34 k = 29 k = 28 k = 31 k = 21 k = 33 k = 29 k = 17 k = 22 k = 24 k = 25 k = 23 k = 28 k = 25 k = 32 k = 22 k = 29 k = 33 k = 34 k = 34 k = 39 k = 22 k = 23 k = 22 k = 26 k = 16 k = 34 k = 28 k = 13 k = 18 k = 19 k = 20 k = 13 k = 18 k = 32 k = 31 k = 28 k = 12 k = 13 k = 26 k = 16 k = 31 k = 21 k = 19 k = 21 k = 22 k = 32 k = 27 k = 24 k = 33 k = 30 k = 21 k = 18 k = 18 k = 15 k = 25 k = 19 k = 20 k = 33 k = 37 k = 29 k = 32 k = 24 k = 16 k = 21 k = 17 k = 21 k = 24 k = 13 k = 20 k = 25 k = 31 k = 35 k = 19 k = 19 k = 25 k = 32 k = 27 k = 32 k = 20 k = 27 k = 16 k = 27 k = 20 k = 32 k = 27 k = 22 k = 16 k = 17 k = 18 k = 16 k = 30 k = 27 k = 16 k = 21 k = 31 k = 26 k = 34 k = 17 k = 22 k = 29 k = 30 k = 26 k = 29 k = 22 k = 20 k = 20 k = 24 k = 25 k = 32 k = 26 k = 16 k = 17 k = 20 k = 30 k = 21 k = 37 k = 31 k = 30 k = 20 k = 21 k = 21 k = 23 k = 26 k = 17 k = 33 k = 18 k = 28 k = 29 k = 31 k = 25 k = 29 k = 21 k = 23 k = 26 k = 26 k = 25 k = 22 k = 25 k = 24 k = 23 k = 32 k = 28 k = 22 k = 37 k = 25 k = 33 k = 14 k = 31 k = 20 k = 23 k = 30 k = 24 k = 20 k = 10 k = 20 k = 23 k = 15 k = 28 k = 25 k = 14 k = 17 k = 24 k = 17 k = 33 k = 20 k = 37 k = 18 k = 26 k = 23 k = 25 k = 30 k = 22 k = 20 k = 30 k = 24 k = 24 k = 20 k = 27 k = 21 k = 21 k = 27 k = 24 k = 21 k = 38 k = 28 k = 30 k = 33 k = 15 k = 25 k = 28 k = 29 k = 18 k = 20 k = 25 k = 36 k = 18 k = 24 k = 25 k = 20 k = 30 k = 32 k = 32 k = 27 k = 22 k = 29 k = 32 k = 21 k = 12 k = 28 k = 17 k = 26 k = 31 k = 33 k = 19 k = 25 k = 24 k = 24 k = 29 k = 21 k = 32 k = 37 k = 19 k = 25 k = 27 k = 19 k = 20 k = 12 k = 24 k = 20 k = 19 k = 24 k = 16 k = 28 k = 20 k = 29 k = 30 k = 21 k = 10 k = 29 k = 29 k = 16 k = 33 k = 34 k = 28 k = 29 k = 32 k = 31 k = 17 k = 29 k = 25 k = 21 k = 26 k = 19 k = 21 k = 22 k = 21 k = 26 k = 21 k = 30 k = 20 k = 32 k = 20 k = 28 k = 33 k = 28 k = 18 k = 24 k = 23 k = 14 k = 35 k = 29 k = 25 k = 13 k = 23 k = 26 k = 30 k = 29 k = 18 k = 14 k = 21 k = 9 k = 22 k = 23 k = 20 k = 17 k = 25 k = 26 k = 31 k = 31 k = 23 k = 33 k = 32 k = 29 k = 24 k = 28 k = 24 k = 24 k = 30 k = 29 k = 16 k = 18 k = 24 k = 27 k = 21 k = 20 k = 31 k = 26 k = 25 k = 24 k = 22 k = 22 k = 24 k = 29 k = 12 k = 16 k = 24 k = 32 k = 34 k = 25 k = 29 k = 24 k = 22 k = 16 k = 31 k = 33 k = 18 k = 26 k = 28 k = 35 k = 16 k = 23 k = 35 k = 29 k = 22 k = 32 k = 26 k = 28 k = 25 k = 25 k = 21 k = 17 k = 15 k = 20 k = 24 k = 21 k = 25 k = 12 k = 34 k = 23 k = 22 k = 27 k = 29 k = 34 k = 22 k = 32 k = 28 k = 13 k = 22 k = 18 k = 21 k = 13 k = 17 k = 26 k = 20 k = 26 k = 20 k = 18 k = 33 k = 27 k = 21 k = 30 k = 29 k = 36 k = 26 k = 18 k = 16 k = 29 k = 24 k = 31 k = 27 k = 35 k = 16 k = 24 k = 22 k = 27 k = 22 k = 22 k = 18 k = 21 k = 27 k = 22 k = 26 k = 22 k = 27 k = 21 k = 22 k = 23 k = 22 k = 13 k = 27 k = 31 k = 26 k = 16 k = 27 k = 10 k = 32 k = 20 k = 29 k = 32 k = 22 k = 33 k = 31 k = 30 k = 25 k = 22 k = 25 k = 18 k = 10 k = 30 k = 31 k = 21 k = ...

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!