Cody

# Problem 317. Find the stride of the longest skip sequence

Solution 1900563

Submitted on 15 Aug 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
a = [1 5 3 11 7 2 4 9]; stride = 2; assert(isequal(skip_sequence_stride(a),stride))

t = 0 t = 0 -4 t = 0 -4 -2 t = 0 -4 -2 -10 t = 0 -4 -2 -10 -6 t = 0 -4 -2 -10 -6 -1 t = 0 -4 -2 -10 -6 -1 -3 t = 0 -4 -2 -10 -6 -1 -3 -8 stride = 0 t = 0 -4 -2 -10 -6 -1 -3 -8 0 t = 0 -4 -2 -10 -6 -1 -3 -8 0 2 t = 0 -4 -2 -10 -6 -1 -3 -8 0 2 -6 t = 0 -4 -2 -10 -6 -1 -3 -8 0 2 -6 -2 t = 0 -4 -2 -10 -6 -1 -3 -8 0 2 -6 -2 3 t = 0 -4 -2 -10 -6 -1 -3 -8 0 2 -6 -2 3 1 t = 0 -4 -2 -10 -6 -1 -3 -8 0 2 -6 -2 3 1 -4 stride = 3 t = 0 -4 -2 -10 -6 -1 -3 -8 0 2 -6 -2 3 1 -4 0 t = 0 -4 -2 -10 -6 -1 -3 -8 0 2 -6 -2 3 1 -4 0 -8 t = 0 -4 -2 -10 -6 -1 -3 -8 0 2 -6 -2 3 1 -4 0 -8 -4 t = 0 -4 -2 -10 -6 -1 -3 -8 0 2 -6 -2 3 1 -4 0 -8 -4 1 t = 0 -4 -2 -10 -6 -1 -3 -8 0 2 -6 -2 3 1 -4 0 -8 -4 1 -1 t = 0 -4 -2 -10 -6 -1 -3 -8 0 2 -6 -2 3 1 -4 0 -8 -4 1 -1 -6 stride = 3 t = 0 -4 -2 -10 -6 -1 -3 -8 0 2 -6 -2 3 1 -4 0 -8 -4 1 -1 -6 0 t = 0 -4 -2 -10 -6 -1 -3 -8 0 2 -6 -2 3 1 -4 0 -8 -4 1 -1 -6 0 4 t = 0 -4 -2 -10 -6 -1 -3 -8 0 2 -6 -2 3 1 -4 0 -8 -4 1 -1 -6 0 4 9 t = 0 -4 -2 -10 -6 -1 -3 -8 0 2 -6 -2 3 1 -4 0 -8 -4 1 -1 -6 0 4 9 7 t = 0 -4 -2 -10 -6 -1 -3 -8 0 2 -6 -2 3 1 -4 0 -8 -4 1 -1 -6 0 4 9 7 2 stride = 9 t = 0 -4 -2 -10 -6 -1 -3 -8 0 2 -6 -2 3 1 -4 0 -8 -4 1 -1 -6 0 4 9 7 2 0 t = 0 -4 -2 -10 -6 -1 -3 -8 0 2 -6 -2 3 1 -4 0 -8 -4 1 -1 -6 0 4 9 7 2 0 5 t = 0 -4 -2 -10 -6 -1 -3 -8 0 2 -6 -2 3 1 -4 0 -8 -4 1 -1 -6 0 4 9 7 2 0 5 3 t = 0 -4 -2 -10 -6 -1 -3 -8 0 2 -6 -2 3 1 -4 0 -8 -4 1 -1 -6 0 4 9 7 2 0 5 3 -2 stride = 9 t = Columns 1 through 30 0 -4 -2 -10 -6 -1 -3 -8 0 2 -6 -2 3 1 -4 0 -8 -4 1 -1 -6 0 4 9 7 2 0 5 3 -2 Column 31 0 t = Columns 1 through 30 0 -4 -2 -10 -6 -1 -3 -8 0 2 -6 -2 3 1 -4 0 -8 -4 1 -1 -6 0 4 9 7 2 0 5 3 -2 Columns 31 through 32 0 -2 t = Columns 1 through 30 0 -4 -2 -10 -6 -1 -3 -8 0 2 -6 -2 3 1 -4 0 -8 -4 1 -1 -6 0 4 9 7 2 0 5 3 -2 Columns 31 through 33 0 -2 -7 stride = 9 t = Columns 1 through 30 0 -4 -2 -10 -6 -1 -3 -8 0 2 -6 -2 3 1 -4 0 -8 -4 1 -1 -6 0 4 9 7 2 0 5 3 -2 Columns 31 through 34 0 -2 -7 0 t = Columns 1 through 30 0 -4 -2 -10 -6 -1 -3 -8 0 2 -6 -2 3 1 -4 0 -8 -4 1 -1 -6 0 4 9 7 2 0 5 3 -2 Columns 31 through 35 0 -2 -7 0 -5 stride = 9 t = Columns 1 through 30 0 -4 -2 -10 -6 -1 -3 -8 0 2 -6 -2 3 1 -4 0 -8 -4 1 -1 -6 0 4 9 7 2 0 5 3 -2 Columns 31 through 36 0 -2 -7 0 -5 0 stride = 9

Assertion failed.

2   Fail
a = [1:5:20 23:3:42 2:9:100]; stride = 9; assert(isequal(skip_sequence_stride(a),stride))

t = 0 t = 0 -5 t = 0 -5 -10 t = 0 -5 -10 -15 t = 0 -5 -10 -15 -22 t = 0 -5 -10 -15 -22 -25 t = 0 -5 -10 -15 -22 -25 -28 t = 0 -5 -10 -15 -22 -25 -28 -31 t = 0 -5 -10 -15 -22 -25 -28 -31 -34 t = 0 -5 -10 -15 -22 -25 -28 -31 -34 -37 t = 0 -5 -10 -15 -22 -25 -28 -31 -34 -37 -40 t = 0 -5 -10 -15 -22 -25 -28 -31 -34 -37 -40 -1 t = 0 -5 -10 -15 -22 -25 -28 -31 -34 -37 -40 -1 -10 t = 0 -5 -10 -15 -22 -25 -28 -31 -34 -37 -40 -1 -10 -19 t = 0 -5 -10 -15 -22 -25 -28 -31 -34 -37 -40 -1 -10 -19 -28 t = 0 -5 -10 -15 -22 -25 -28 -31 -34 -37 -40 -1 -10 -19 -28 -37 t = 0 -5 -10 -15 -22 -25 -28 -31 -34 -37 -40 -1 -10 -19 -28 -37 -46 t = 0 -5 -10 -15 -22 -25 -28 -31 -34 -37 -40 -1 -10 -19 -28 -37 -46 -55 t = 0 -5 -10 -15 -22 -25 -28 -31 -34 -37 -40 -1 -10 -19 -28 -37 -46 -55 -64 t = 0 -5 -10 -15 -22 -25 -28 -31 -34 -37 -40 -1 -10 -19 -28 -37 -46 -55 -64 -73 t = 0 -5 -10 -15 -22 -25 -28 -31 -34 -37 -40 -1 -10 -19 -28 -37 -46 -55 -64 -73 -82 t = 0 -5 -10 -15 -22 -25 -28 -31 -34 -37 -40 -1 -10 -19 -28 -37 -46 -55 -64 -73 -82 -91 stride = 0 t = 0 -5 -10 -15 -22 -25 -28 -31 -34 -37 -40 -1 -10 -19 -28 -37 -46 -55 -64 -73 -82 -91 0 t = 0 -5 -10 -15 -22 -25 -28 -31 -34 -37 -40 -1 -10 -19 -28 -37 -46 -55 -64 -73 -82 -91 0 -5 t = 0 -5 -10 -15 -22 -25 -28 -31 -34 -37 -40 -1 -10 -19 -28 -37 -46 -55 -64 -73 -82 -91 0 -5 -10 t = 0 -5 -10 -15 -22 -25 -28 -31 -34 -37 -40 -1 -10 -19 -28 -37 -46 -55 -64 -73 -82 -91 0 -5 -10 -17 t = 0 -5 -10 -15 -22 -25 -28 -31 -34 -37 -40 -1 -10 -19 -28 -37 -46 -55 -64 -73 -82 -91 0 -5 -10 -17 -20 t = 0 -5 -10 -15 -22 -25 -28 -31 -34 -37 -40 -1 -10 -19 -28 -37 -46 -55 -64 -73 -82 -91 0 -5 -10 -17 -20 -23 t = 0 -5 -10 -15 -22 -25 -28 -31 -34 -37 -40 -1 -10 -19 -28 -37 -46 -55 -64 -73 -82 -91 0 -5 -10 -17 -20 -23 -26 t = 0 -5 -10 -15 -22 -25 -28 -31 -34 -37 -40 -1 -10 -19 -28 -37 -46 -55 -64 -73 -82 -91 0 -5 -10 -17 -20 -23 -26 -29 t = Columns 1 through 30 0 -5 -10 -15 -22 -25 -28 -31 -34 -37 -40 -1 -10 -19 -28 -37 -46 -55 -64 -73 -82 -91 0 -5 -10 -17 -20 -23 -26 -29 Column 31 -32 t = Columns 1 through 30 0 -5 -10 -15 -22 -25 -28 -31 -34 -37 -40 -1 -10 -19 -28 -37 -46 -55 -64 -73 -82 -91 0 -5 -10 -17 -20 -23 -26 -29 Columns 31 through 32 -32 -35 t = Columns 1 through 30 0 -5 -10 -15 -22 -25 -28 -31 -34 -37 -40 -1 -10 -19 -28 -37 -46 -55 -64 -73 -82 -91 0 -5 -10 -17 -20 -23 -26 -29 Columns 31 through 33 -32 -35 4 t = Columns 1 through 30 0 -5 -10 -15 -22 -25 -28 -31 -34 -37 -40 -1 -10 -19 -28 -37 -46 -55 -64 -73 -82 -91 0 -5 -10 -17 -20 -23 -26 -29 Columns 31 through 34 -32 -35 4 -5 t = Columns 1 through 30 0 -5 -10 -15 -22 -25 -28 -31 -34 -37 -40 -1 -10 -19 -28 -37 -46 -55 -64 -73 -82 -91 0 -5 -10 -17 -20 -23 -26 -29 Columns 31 through 35 -32 -35 4 -5 -14 t = Columns 1 through 30 0 -5 -10 -15 -22 -25 -28 -31 -34 -37 -40 -1 -10 -19 -28 -37 -46 -55 -64 -73 -82 -91 0 -5 -10 -17 -20 -23 -26 -29 Columns 31 through 36 -32 -35 4 -5 -14 -23 t = Columns 1 through 30 0 -5 -10 -15 -22 -25 -28 -31 -34 -37 -40 -1 -10 -19 -28 -37 -46 -55 -64 -73 -82 -91 0 -5 -10 -17 -20 -23 -26 -29 Columns 31 through 37 -32 -35 4 -5 -14 -23 -32 t = Columns 1 through 30 0 -5 -10 -15 -22 -25 -28 -31 -34 -37 -40 -1 -10 -19 -28 -37 -46 -55 -64 -73 -82 -91 0 -5 -10 -17 -20 -23 -26 -29 Columns 31 through 38 -32 -35 4 -5 -14 -23 -32 -41 t = Columns 1 through 30 0 -5 -10 -15 -22 -25 -28 -31 -34 -37 -40 -1 -10 -19 -28 -37 -46 -55 -64 -73 -82 -91 0 -5 -10 -17 -20 -23 -26 -29 Columns 31 through 39 -32 -35 4 -5 -14 -23 -32 -41 -50 t = Columns 1 through 30 0 -5 -10 -15 -22 -25 -28 -31 -34 -37 -40 -1 -10 -19 -28 -37 -46 -55 -64 -73 -82 -91 0 -5 -10 -17 -20 -23 -26 -29 Columns 31 through 40 -32 -35 4 -5 -14 -23 -32 -41 -50 -59 t = Columns 1 through 30 0 -5 -10 -15 -22 -25 -28 -31 -34 -37 -40 -1 -10 -19 -28 -37 -46 -55 -64 -73 -82 -91 0 -5 -10 -17 -20 -23 -26 -29 Columns 31 through 41 -32 -35 4 -5 -14 -23 -32 -41 -50 -59 -68 t = Columns 1 through 30 0 -5 -10 -15 -22 -25 -28 -31 -34 -37 -40 -1 -10 -19 -28 -37 -46 -55 -64 -73 -82 -91 0 -5 -10 -17 -20 -23 -26 -29 Columns 31 through 42 -32 -35 4 -5 -14 -23 -32 -41 -50 -59 -68 -77 t = Columns 1 through 30 0 -5 -10 -15 -22 -25 -28 -31 -34 -37 -40 -1 -10 -19 -28 -37 -46 -55 -64 -73 -82 -91 0 -5 -10 -17 -20 -23 -26 -29 Columns 31 through 43 -32 -35 4 -5 -14 -23 -32 -41 -50 -59 -68 -77 -86 stride = 4 t = Columns 1 through 30 0 -5 -10 -15 -22 -25 -28 -31 -34 -37 -40 -1 -10 -19 -28 -37 -46 -55 -64 -73 -82 -91 0 -5 -10 -17 -20 -23 -26 -29 Columns 31 through 44 -32 -35 4 -5 -14 -23 -32 -41 -50 -59 -68 -77 -86 0 t = Columns 1 through 30 0 -5 -10 -15 -22 -25 -28 -31 -34 -37 -40 -1 -10 -19 -28 -37 -46 -55 -64 -73 -82 -91 0 -5 -10 -17 -20 -23 -26 -29 Columns 31 through 45 -32 -35 4 -5 -14 -23 -32 -41 -50 -59 -68 -77 -86 0 -5 t = Columns 1 through 30 0 -5 -10 -15 -22 -25 -28 -31 -34 -37 -40 -1 -10 -19 -28 -37 -46 -55 -64 -73 -82 -91 0 -5 -10 -17 -20 -23 -26 -29 Columns 31 through 46 -32 -35 4 -5 -14 -23 -32 -41 -50 -59 -68 -77 -86 0 -5 -12 t = Columns 1 through 30 0 -5 -10 -15 -22 -25 -28 -31 -34 -37 -40 -1 -10 -19 -28 -37 -46 -55 -64 -73 -82 -91 0 -5 -10 -17 -20 -23 -26 -29 Columns 31 through 47 -32 -35 4 -5 -14 -23 -32 -41 -50 -59 -68 -77 -86 0 -5 -12 -15 t = Columns 1 through 30 0 -5 -10 -15 -22 -25 -28 -31 -34 -37 -40 -1 -10 -19 -28 -37 -46 -55 -64 -73 -82 -91 0 -5 -10 -17 -20 -23 -26 -29 Columns 31 through 48 -32 -35 4 -5 -14 -23 -32 -41 -50 -59 -68 -77 -86 0 -5 -12 -15 -18 t = Columns 1 through 30 0 -5 -10 -15 -22 -25 -28 -31 -34 -37 -40 -1 -10 -19 -28 -37 -46 -55 -64 -73 -82 -91 0 -5 -10 -17 -20 -23 -26 -29 Columns 31 through 49 -32 -35 4 -5 -14 -23 -32 -41 -50 -59 -68 -77 -86 0 -5 -12 -15 -18 -21 t = Columns 1 through 30 0 -5 -10 -15 -22 -25 -28 -31 -34 -37 -40 -1 -10 -19 -28 -37 -46 -55 -64 -73 -82 -91 0 -5 -10 -17 -20 -23 -26 -29 Columns 31 through 50 -32 -35 4 -5 -14 -23 -32 -41 -50 -59 -68 -77 -86 0 -5 -12 -15 -18 -21 -24 t = Columns 1 through 30 0 -5 -10 -15 -22 -25 -28 -31 -34 -37 -40 -1 -10 -19 -28 -37 -46 -55 -64 -73 -82 -91 0 -5 -10 -17 -20 -23 -26 -29 Columns 31 through 51 -32 -35 4 -5 -14 -23 -32 -41 -50 -59 -68 -77 -86 0 -5 -12 -15 -18 -21 -24 -27 t = Columns 1 through 30 0 -5 -10 -15 -22 -25 -28 -31 -34 -37 -40 -1 -10 -19 -28 -37 -46 -55 -64 -73 -82 -91 0 -5 -10 -17 -20 -23 -26 -29 Columns 31 through 52 -32 -35 4 -5 -14 -23 -32 -41 -50 -59 -68 -77 -86 0 -5 -12 -15 -18 -21 -24 -27 -30 t = Columns 1 through 30 0 -5 -10 -15 -22 -25 -28 -31 -34 -37 -40 -1 -10 -19 -28 -37 -46 -55 -64 -73 -82 -91 0 ...

Assertion failed.

3   Fail
a = [2:2:22 13:17]; a = a(randperm(length(a))); stride = 2; assert(isequal(skip_sequence_stride(a),stride))

t = 0 t = 0 -14 t = 0 -14 -10 t = 0 -14 -10 -15 t = 0 -14 -10 -15 -12 t = 0 -14 -10 -15 -12 -16 t = 0 -14 -10 -15 -12 -16 -13 t = 0 -14 -10 -15 -12 -16 -13 -4 t = 0 -14 -10 -15 -12 -16 -13 -4 -12 t = 0 -14 -10 -15 -12 -16 -13 -4 -12 -11 t = 0 -14 -10 -15 -12 -16 -13 -4 -12 -11 -2 t = 0 -14 -10 -15 -12 -16 -13 -4 -12 -11 -2 -14 t = 0 -14 -10 -15 -12 -16 -13 -4 -12 -11 -2 -14 -18 t = 0 -14 -10 -15 -12 -16 -13 -4 -12 -11 -2 -14 -18 -8 t = 0 -14 -10 -15 -12 -16 -13 -4 -12 -11 -2 -14 -18 -8 -6 t = 0 -14 -10 -15 -12 -16 -13 -4 -12 -11 -2 -14 -18 -8 -6 -20 stride = 0 t = 0 -14 -10 -15 -12 -16 -13 -4 -12 -11 -2 -14 -18 -8 -6 -20 0 t = 0 -14 -10 -15 -12 -16 -13 -4 -12 -11 -2 -14 -18 -8 -6 -20 0 4 t = 0 -14 -10 -15 -12 -16 -13 -4 -12 -11 -2 -14 -18 -8 -6 -20 0 4 -1 t = 0 -14 -10 -15 -12 -16 -13 -4 -12 -11 -2 -14 -18 -8 -6 -20 0 4 -1 2 t = 0 -14 -10 -15 -12 -16 -13 -4 -12 -11 -2 -14 -18 -8 -6 -20 0 4 -1 2 -2 t = 0 -14 -10 -15 -12 -16 -13 -4 -12 -11 -2 -14 -18 -8 -6 -20 0 4 -1 2 -2 1 t = 0 -14 -10 -15 -12 -16 -13 -4 -12 -11 -2 -14 -18 -8 -6 -20 0 4 -1 2 -2 1 10 t = 0 -14 -10 -15 -12 -16 -13 -4 -12 -11 -2 -14 -18 -8 -6 -20 0 4 -1 2 -2 1 10 2 t = 0 -14 -10 -15 -12 -16 -13 -4 -12 -11 -2 -14 -18 -8 -6 -20 0 4 -1 2 -2 1 10 2 3 t = 0 -14 -10 -15 -12 -16 -13 -4 -12 -11 -2 -14 -18 -8 -6 -20 0 4 -1 2 -2 1 10 2 3 12 t = 0 -14 -10 -15 -12 -16 -13 -4 -12 -11 -2 -14 -18 -8 -6 -20 0 4 -1 2 -2 1 10 2 3 12 0 t = 0 -14 -10 -15 -12 -16 -13 -4 -12 -11 -2 -14 -18 -8 -6 -20 0 4 -1 2 -2 1 10 2 3 12 0 -4 t = 0 -14 -10 -15 -12 -16 -13 -4 -12 -11 -2 -14 -18 -8 -6 -20 0 4 -1 2 -2 1 10 2 3 12 0 -4 6 t = 0 -14 -10 -15 -12 -16 -13 -4 -12 -11 -2 -14 -18 -8 -6 -20 0 4 -1 2 -2 1 10 2 3 12 0 -4 6 8 t = Columns 1 through 30 0 -14 -10 -15 -12 -16 -13 -4 -12 -11 -2 -14 -18 -8 -6 -20 0 4 -1 2 -2 1 10 2 3 12 0 -4 6 8 Column 31 -6 stride = 12 t = Columns 1 through 30 0 -14 -10 -15 -12 -16 -13 -4 -12 -11 -2 -14 -18 -8 -6 -20 0 4 -1 2 -2 1 10 2 3 12 0 -4 6 8 Columns 31 through 32 -6 0 t = Columns 1 through 30 0 -14 -10 -15 -12 -16 -13 -4 -12 -11 -2 -14 -18 -8 -6 -20 0 4 -1 2 -2 1 10 2 3 12 0 -4 6 8 Columns 31 through 33 -6 0 -5 t = Columns 1 through 30 0 -14 -10 -15 -12 -16 -13 -4 -12 -11 -2 -14 -18 -8 -6 -20 0 4 -1 2 -2 1 10 2 3 12 0 -4 6 8 Columns 31 through 34 -6 0 -5 -2 t = Columns 1 through 30 0 -14 -10 -15 -12 -16 -13 -4 -12 -11 -2 -14 -18 -8 -6 -20 0 4 -1 2 -2 1 10 2 3 12 0 -4 6 8 Columns 31 through 35 -6 0 -5 -2 -6 t = Columns 1 through 30 0 -14 -10 -15 -12 -16 -13 -4 -12 -11 -2 -14 -18 -8 -6 -20 0 4 -1 2 -2 1 10 2 3 12 0 -4 6 8 Columns 31 through 36 -6 0 -5 -2 -6 -3 t = Columns 1 through 30 0 -14 -10 -15 -12 -16 -13 -4 -12 -11 -2 -14 -18 -8 -6 -20 0 4 -1 2 -2 1 10 2 3 12 0 -4 6 8 Columns 31 through 37 -6 0 -5 -2 -6 -3 6 t = Columns 1 through 30 0 -14 -10 -15 -12 -16 -13 -4 -12 -11 -2 -14 -18 -8 -6 -20 0 4 -1 2 -2 1 10 2 3 12 0 -4 6 8 Columns 31 through 38 -6 0 -5 -2 -6 -3 6 -2 t = Columns 1 through 30 0 -14 -10 -15 -12 -16 -13 -4 -12 -11 -2 -14 -18 -8 -6 -20 0 4 -1 2 -2 1 10 2 3 12 0 -4 6 8 Columns 31 through 39 -6 0 -5 -2 -6 -3 6 -2 -1 t = Columns 1 through 30 0 -14 -10 -15 -12 -16 -13 -4 -12 -11 -2 -14 -18 -8 -6 -20 0 4 -1 2 -2 1 10 2 3 12 0 -4 6 8 Columns 31 through 40 -6 0 -5 -2 -6 -3 6 -2 -1 8 t = Columns 1 through 30 0 -14 -10 -15 -12 -16 -13 -4 -12 -11 -2 -14 -18 -8 -6 -20 0 4 -1 2 -2 1 10 2 3 12 0 -4 6 8 Columns 31 through 41 -6 0 -5 -2 -6 -3 6 -2 -1 8 -4 t = Columns 1 through 30 0 -14 -10 -15 -12 -16 -13 -4 -12 -11 -2 -14 -18 -8 -6 -20 0 4 -1 2 -2 1 10 2 3 12 0 -4 6 8 Columns 31 through 42 -6 0 -5 -2 -6 -3 6 -2 -1 8 -4 -8 t = Columns 1 through 30 0 -14 -10 -15 -12 -16 -13 -4 -12 -11 -2 -14 -18 -8 -6 -20 0 4 -1 2 -2 1 10 2 3 12 0 -4 6 8 Columns 31 through 43 -6 0 -5 -2 -6 -3 6 -2 -1 8 -4 -8 2 t = Columns 1 through 30 0 -14 -10 -15 -12 -16 -13 -4 -12 -11 -2 -14 -18 -8 -6 -20 0 4 -1 2 -2 1 10 2 3 12 0 -4 6 8 Columns 31 through 44 -6 0 -5 -2 -6 -3 6 -2 -1 8 -4 -8 2 4 t = Columns 1 through 30 0 -14 -10 -15 -12 -16 -13 -4 -12 -11 -2 -14 -18 -8 -6 -20 0 4 -1 2 -2 1 10 2 3 12 0 -4 6 8 Columns 31 through 45 -6 0 -5 -2 -6 -3 6 -2 -1 8 -4 -8 2 4 -10 stride = 12 t = Columns 1 through 30 0 -14 -10 -15 -12 -16 -13 -4 -12 -11 -2 -14 -18 -8 -6 -20 0 4 -1 2 -2 1 10 2 3 12 0 -4 6 8 Columns 31 through 46 -6 0 -5 -2 -6 -3 6 -2 -1 8 -4 -8 2 4 -10 0 t = Columns 1 through 30 0 -14 -10 -15 -12 -16 -13 -4 -12 -11 -2 -14 -18 -8 -6 -20 0 4 -1 2 -2 1 10 2 3 12 0 -4 6 8 Columns 31 through 47 -6 0 -5 -2 -6 -3 6 -2 -1 8 -4 -8 2 4 -10 0 3 t = Columns 1 through 30 0 -14 -10 -15 -12 -16 -13 -4 -12 -11 -2 -14 -18 -8 -6 -20 0 4 -1 2 -2 1 10 2 3 12 0 -4 6 8 Columns 31 through 48 -6 0 -5 -2 -6 -3 6 -2 -1 8 -4 -8 2 4 -10 0 3 -1 t = Columns 1 through 30 0 -14 -10 -15 -12 -16 -13 -4 -12 -11 -2 -14 -18 -8 -6 -20 0 4 -1 2 -2 1 10 2 3 12 0 -4 6 8 Columns 31 through 49 -6 0 -5 -2 -6 -3 6 -2 -1 8 -4 -8 2 4 -10 0 3 -1 2 t = Columns 1 through 30 0 -14 -10 -15 -12 -16 -13 -4 -12 -11 -2 -14 -18 -8 -6 -20 0 4 -1 2 -2 1 10 2 3 12 0 -4 6 8 Columns 31 through 50 -6 0 -5 -2 -6 -3 6 -2 -1 8 -4 -8 2 4 -10 0 3 -1 2 11 t = Columns 1 through 30 0 -14 -10 -15 -12 -16 -13 -4 -12 -11 -2 -14 -18 -8 -6 -20 0 4 -1 2 -2 1 10 2 3 12 0 -4 6 8 Columns 31 through 51 -6 0 -5 -2 -6 -3 6 -2 -1 8 -4 -8 2 4 -10 0 3 -1 2 11 3 t = Columns 1 through 30 0 -14 -10 -15 -12 -16 -13 -4 -12 -11 -2 -14 -18 -8 -6 -20 0 4 -1 2 -2 1 10 2 3 12 0 -4 6 8 Columns 31 through 52 -6 0 -5 -2 -6 -3 6 -2 -1 8 -4 -8 2 4 -10 0 3 -1 2 11 3 4 t = Columns 1 through 30 0 -14 -10 -15 -12 -16 -13 -4 -12 -11 -2 -14 -18 -8 -6 -20 0 4 -1 2...

Assertion failed.

4   Fail
a = 37:5:120; a = a(randperm(length(a))); stride = 5; assert(isequal(skip_sequence_stride(a),stride))

t = 0 t = 0 5 t = 0 5 15 t = 0 5 15 25 t = 0 5 15 25 -20 t = 0 5 15 25 -20 30 t = 0 5 15 25 -20 30 -30 t = 0 5 15 25 -20 30 -30 -10 t = 0 5 15 25 -20 30 -30 -10 -5 t = 0 5 15 25 -20 30 -30 -10 -5 -25 t = 0 5 15 25 -20 30 -30 -10 -5 -25 -15 t = 0 5 15 25 -20 30 -30 -10 -5 -25 -15 40 t = 0 5 15 25 -20 30 -30 -10 -5 -25 -15 40 -35 t = 0 5 15 25 -20 30 -30 -10 -5 -25 -15 40 -35 45 t = 0 5 15 25 -20 30 -30 -10 -5 -25 -15 40 -35 45 10 t = 0 5 15 25 -20 30 -30 -10 -5 -25 -15 40 -35 45 10 20 t = 0 5 15 25 -20 30 -30 -10 -5 -25 -15 40 -35 45 10 20 35 stride = 45 t = 0 5 15 25 -20 30 -30 -10 -5 -25 -15 40 -35 45 10 20 35 0 t = 0 5 15 25 -20 30 -30 -10 -5 -25 -15 40 -35 45 10 20 35 0 10 t = 0 5 15 25 -20 30 -30 -10 -5 -25 -15 40 -35 45 10 20 35 0 10 20 t = 0 5 15 25 -20 30 -30 -10 -5 -25 -15 40 -35 45 10 20 35 0 10 20 -25 t = 0 5 15 25 -20 30 -30 -10 -5 -25 -15 40 -35 45 10 20 35 0 10 20 -25 25 t = 0 5 15 25 -20 30 -30 -10 -5 -25 -15 40 -35 45 10 20 35 0 10 20 -25 25 -35 t = 0 5 15 25 -20 30 -30 -10 -5 -25 -15 40 -35 45 10 20 35 0 10 20 -25 25 -35 -15 t = 0 5 15 25 -20 30 -30 -10 -5 -25 -15 40 -35 45 10 20 35 0 10 20 -25 25 -35 -15 -10 t = 0 5 15 25 -20 30 -30 -10 -5 -25 -15 40 -35 45 10 20 35 0 10 20 -25 25 -35 -15 -10 -30 t = 0 5 15 25 -20 30 -30 -10 -5 -25 -15 40 -35 45 10 20 35 0 10 20 -25 25 -35 -15 -10 -30 -20 t = 0 5 15 25 -20 30 -30 -10 -5 -25 -15 40 -35 45 10 20 35 0 10 20 -25 25 -35 -15 -10 -30 -20 35 t = 0 5 15 25 -20 30 -30 -10 -5 -25 -15 40 -35 45 10 20 35 0 10 20 -25 25 -35 -15 -10 -30 -20 35 -40 t = 0 5 15 25 -20 30 -30 -10 -5 -25 -15 40 -35 45 10 20 35 0 10 20 -25 25 -35 -15 -10 -30 -20 35 -40 40 t = Columns 1 through 30 0 5 15 25 -20 30 -30 -10 -5 -25 -15 40 -35 45 10 20 35 0 10 20 -25 25 -35 -15 -10 -30 -20 35 -40 40 Column 31 5 t = Columns 1 through 30 0 5 15 25 -20 30 -30 -10 -5 -25 -15 40 -35 45 10 20 35 0 10 20 -25 25 -35 -15 -10 -30 -20 35 -40 40 Columns 31 through 32 5 15 t = Columns 1 through 30 0 5 15 25 -20 30 -30 -10 -5 -25 -15 40 -35 45 10 20 35 0 10 20 -25 25 -35 -15 -10 -30 -20 35 -40 40 Columns 31 through 33 5 15 30 stride = 45 t = Columns 1 through 30 0 5 15 25 -20 30 -30 -10 -5 -25 -15 40 -35 45 10 20 35 0 10 20 -25 25 -35 -15 -10 -30 -20 35 -40 40 Columns 31 through 34 5 15 30 0 t = Columns 1 through 30 0 5 15 25 -20 30 -30 -10 -5 -25 -15 40 -35 45 10 20 35 0 10 20 -25 25 -35 -15 -10 -30 -20 35 -40 40 Columns 31 through 35 5 15 30 0 10 t = Columns 1 through 30 0 5 15 25 -20 30 -30 -10 -5 -25 -15 40 -35 45 10 20 35 0 10 20 -25 25 -35 -15 -10 -30 -20 35 -40 40 Columns 31 through 36 5 15 30 0 10 -35 t = Columns 1 through 30 0 5 15 25 -20 30 -30 -10 -5 -25 -15 40 -35 45 10 20 35 0 10 20 -25 25 -35 -15 -10 -30 -20 35 -40 40 Columns 31 through 37 5 15 30 0 10 -35 15 t = Columns 1 through 30 0 5 15 25 -20 30 -30 -10 -5 -25 -15 40 -35 45 10 20 35 0 10 20 -25 25 -35 -15 -10 -30 -20 35 -40 40 Columns 31 through 38 5 15 30 0 10 -35 15 -45 t = Columns 1 through 30 0 5 15 25 -20 30 -30 -10 -5 -25 -15 40 -35 45 10 20 35 0 10 20 -25 25 -35 -15 -10 -30 -20 35 -40 40 Columns 31 through 39 5 15 30 0 10 -35 15 -45 -25 t = Columns 1 through 30 0 5 15 25 -20 30 -30 -10 -5 -25 -15 40 -35 45 10 20 35 0 10 20 -25 25 -35 -15 -10 -30 -20 35 -40 40 Columns 31 through 40 5 15 30 0 10 -35 15 -45 -25 -20 t = Columns 1 through 30 0 5 15 25 -20 30 -30 -10 -5 -25 -15 40 -35 45 10 20 35 0 10 20 -25 25 -35 -15 -10 -30 -20 35 -40 40 Columns 31 through 41 5 15 30 0 10 -35 15 -45 -25 -20 -40 t = Columns 1 through 30 0 5 15 25 -20 30 -30 -10 -5 -25 -15 40 -35 45 10 20 35 0 10 20 -25 25 -35 -15 -10 -30 -20 35 -40 40 Columns 31 through 42 5 15 30 0 10 -35 15 -45 -25 -20 -40 -30 t = Columns 1 through 30 0 5 15 25 -20 30 -30 -10 -5 -25 -15 40 -35 45 10 20 35 0 10 20 -25 25 -35 -15 -10 -30 -20 35 -40 40 Columns 31 through 43 5 15 30 0 10 -35 15 -45 -25 -20 -40 -30 25 t = Columns 1 through 30 0 5 15 25 -20 30 -30 -10 -5 -25 -15 40 -35 45 10 20 35 0 10 20 -25 25 -35 -15 -10 -30 -20 35 -40 40 Columns 31 through 44 5 15 30 0 10 -35 15 -45 -25 -20 -40 -30 25 -50 t = Columns 1 through 30 0 5 15 25 -20 30 -30 -10 -5 -25 -15 40 -35 45 10 20 35 0 10 20 -25 25 -35 -15 -10 -30 -20 35 -40 40 Columns 31 through 45 5 15 30 0 10 -35 15 -45 -25 -20 -40 -30 25 -50 30 t = Columns 1 through 30 0 5 15 25 -20 30 -30 -10 -5 -25 -15 40 -35 45 10 20 35 0 10 20 -25 25 -35 -15 -10 -30 -20 35 -40 40 Columns 31 through 46 5 15 30 0 10 -35 15 -45 -25 -20 -40 -30 25 -50 30 -5 t = Columns 1 through 30 0 5 15 25 -20 30 -30 -10 -5 -25 -15 40 -35 45 10 20 35 0 10 20 -25 25 -35 -15 -10 -30 -20 35 -40 40 Columns 31 through 47 5 15 30 0 10 -35 15 -45 -25 -20 -40 -30 25 -50 30 -5 5 t = Columns 1 through 30 0 5 15 25 -20 30 -30 -10 -5 -25 -15 40 -35 45 10 20 35 0 10 20 -25 25 -35 -15 -10 -30 -20 35 -40 40 Columns 31 through 48 5 15 30 0 10 -35 15 -45 -25 -20 -40 -30 25 -50 30 -5 5 20 stride = 45 t = Columns 1 through 30 0 5 15 25 -20 30 -30 -10 -5 -25 -15 40 -35 45 10 20 35 0 10 20 -25 25 -35 -15 -10 -30 -20 35 -40 40 Columns 31 through 49 5 15 30 0 10 -35 15 -45 -25 -20 -40 -30 25 -50 30 -5 5 20 0 t = Columns 1 through 30 0 5 15 25 -20 30 -30 -10 -5 -25 -15 40 -35 45 10 20 35 0 10 20 -25 25 -35 -15 -10 -30 -20 35 -40 40 Columns 31 through 50 5 15 30 0 10 -35 15 -45 -25 -20 -40 -30 25 -50 30 -5 5 20 0 -45 t = Columns 1 through 30 0 5 15 25 -20 30 -30 -10 -5 -25 -15 40 -35 45 10 20 35 0 10 20 -25 25 -35 -15 -10 -30 -20 35 -40 40 Columns 31 through 51 5 15 30 0 10 -35 15 -45 -25 -20 -40 -30 25 -50 30 -5 5 20 0 -45 5 t = Columns 1 through 30 0 5 15 25 -20 30 -30 -10 -5 -25 -15 40 -35 45 10 20 35 0 10 20 -25 25 -35 -15 -10 -30 -20 35 -40 40 Columns 31 through 52 5 15 30 0 10 -35 15 -45 -25 -20 -40 -30 25 -50 30 -5 5 20 0 -45 5 -55 t = Columns 1 through 30 0 5 15 25 -20 30 -30 -10 -5 -25 -15 40 -35 45 10 20 35 0 10 20...

Assertion failed.

5   Fail
a = [1:5 101:10:171 201:205]; a = a(randperm(length(a))); stride = 10; assert(isequal(skip_sequence_stride(a),stride))

t = 0 t = 0 199 t = 0 199 201 t = 0 199 201 1 t = 0 199 201 1 203 t = 0 199 201 1 203 93 t = 0 199 201 1 203 93 3 t = 0 199 201 1 203 93 3 103 t = 0 199 201 1 203 93 3 103 73 t = 0 199 201 1 203 93 3 103 73 53 t = 0 199 201 1 203 93 3 103 73 53 202 t = 0 199 201 1 203 93 3 103 73 53 202 200 t = 0 199 201 1 203 93 3 103 73 53 202 200 2 t = 0 199 201 1 203 93 3 103 73 53 202 200 2 -1 t = 0 199 201 1 203 93 3 103 73 53 202 200 2 -1 63 t = 0 199 201 1 203 93 3 103 73 53 202 200 2 -1 63 83 t = 0 199 201 1 203 93 3 103 73 53 202 200 2 -1 63 83 43 t = 0 199 201 1 203 93 3 103 73 53 202 200 2 -1 63 83 43 33 stride = 203 t = 0 199 201 1 203 93 3 103 73 53 202 200 2 -1 63 83 43 33 0 t = 0 199 201 1 203 93 3 103 73 53 202 200 2 -1 63 83 43 33 0 2 t = 0 199 201 1 203 93 3 103 73 53 202 200 2 -1 63 83 43 33 0 2 -198 t = 0 199 201 1 203 93 3 103 73 53 202 200 2 -1 63 83 43 33 0 2 -198 4 t = 0 199 201 1 203 93 3 103 73 53 202 200 2 -1 63 83 43 33 0 2 -198 4 -106 t = 0 199 201 1 203 93 3 103 73 53 202 200 2 -1 63 83 43 33 0 2 -198 4 -106 -196 t = 0 199 201 1 203 93 3 103 73 53 202 200 2 -1 63 83 43 33 0 2 -198 4 -106 -196 -96 t = 0 199 201 1 203 93 3 103 73 53 202 200 2 -1 63 83 43 33 0 2 -198 4 -106 -196 -96 -126 t = 0 199 201 1 203 93 3 103 73 53 202 200 2 -1 63 83 43 33 0 2 -198 4 -106 -196 -96 -126 -146 t = 0 199 201 1 203 93 3 103 73 53 202 200 2 -1 63 83 43 33 0 2 -198 4 -106 -196 -96 -126 -146 3 t = 0 199 201 1 203 93 3 103 73 53 202 200 2 -1 63 83 43 33 0 2 -198 4 -106 -196 -96 -126 -146 3 1 t = 0 199 201 1 203 93 3 103 73 53 202 200 2 -1 63 83 43 33 0 2 -198 4 -106 -196 -96 -126 -146 3 1 -197 t = Columns 1 through 30 0 199 201 1 203 93 3 103 73 53 202 200 2 -1 63 83 43 33 0 2 -198 4 -106 -196 -96 -126 -146 3 1 -197 Column 31 -200 t = Columns 1 through 30 0 199 201 1 203 93 3 103 73 53 202 200 2 -1 63 83 43 33 0 2 -198 4 -106 -196 -96 -126 -146 3 1 -197 Columns 31 through 32 -200 -136 t = Columns 1 through 30 0 199 201 1 203 93 3 103 73 53 202 200 2 -1 63 83 43 33 0 2 -198 4 -106 -196 -96 -126 -146 3 1 -197 Columns 31 through 33 -200 -136 -116 t = Columns 1 through 30 0 199 201 1 203 93 3 103 73 53 202 200 2 -1 63 83 43 33 0 2 -198 4 -106 -196 -96 -126 -146 3 1 -197 Columns 31 through 34 -200 -136 -116 -156 t = Columns 1 through 30 0 199 201 1 203 93 3 103 73 53 202 200 2 -1 63 83 43 33 0 2 -198 4 -106 -196 -96 -126 -146 3 1 -197 Columns 31 through 35 -200 -136 -116 -156 -166 stride = 203 t = Columns 1 through 30 0 199 201 1 203 93 3 103 73 53 202 200 2 -1 63 83 43 33 0 2 -198 4 -106 -196 -96 -126 -146 3 1 -197 Columns 31 through 36 -200 -136 -116 -156 -166 0 t = Columns 1 through 30 0 199 201 1 203 93 3 103 73 53 202 200 2 -1 63 83 43 33 0 2 -198 4 -106 -196 -96 -126 -146 3 1 -197 Columns 31 through 37 -200 -136 -116 -156 -166 0 -200 t = Columns 1 through 30 0 199 201 1 203 93 3 103 73 53 202 200 2 -1 63 83 43 33 0 2 -198 4 -106 -196 -96 -126 -146 3 1 -197 Columns 31 through 38 -200 -136 -116 -156 -166 0 -200 2 t = Columns 1 through 30 0 199 201 1 203 93 3 103 73 53 202 200 2 -1 63 83 43 33 0 2 -198 4 -106 -196 -96 -126 -146 3 1 -197 Columns 31 through 39 -200 -136 -116 -156 -166 0 -200 2 -108 t = Columns 1 through 30 0 199 201 1 203 93 3 103 73 53 202 200 2 -1 63 83 43 33 0 2 -198 4 -106 -196 -96 -126 -146 3 1 -197 Columns 31 through 40 -200 -136 -116 -156 -166 0 -200 2 -108 -198 t = Columns 1 through 30 0 199 201 1 203 93 3 103 73 53 202 200 2 -1 63 83 43 33 0 2 -198 4 -106 -196 -96 -126 -146 3 1 -197 Columns 31 through 41 -200 -136 -116 -156 -166 0 -200 2 -108 -198 -98 t = Columns 1 through 30 0 199 201 1 203 93 3 103 73 53 202 200 2 -1 63 83 43 33 0 2 -198 4 -106 -196 -96 -126 -146 3 1 -197 Columns 31 through 42 -200 -136 -116 -156 -166 0 -200 2 -108 -198 -98 -128 t = Columns 1 through 30 0 199 201 1 203 93 3 103 73 53 202 200 2 -1 63 83 43 33 0 2 -198 4 -106 -196 -96 -126 -146 3 1 -197 Columns 31 through 43 -200 -136 -116 -156 -166 0 -200 2 -108 -198 -98 -128 -148 t = Columns 1 through 30 0 199 201 1 203 93 3 103 73 53 202 200 2 -1 63 83 43 33 0 2 -198 4 -106 -196 -96 -126 -146 3 1 -197 Columns 31 through 44 -200 -136 -116 -156 -166 0 -200 2 -108 -198 -98 -128 -148 1 t = Columns 1 through 30 0 199 201 1 203 93 3 103 73 53 202 200 2 -1 63 83 43 33 0 2 -198 4 -106 -196 -96 -126 -146 3 1 -197 Columns 31 through 45 -200 -136 -116 -156 -166 0 -200 2 -108 -198 -98 -128 -148 1 -1 t = Columns 1 through 30 0 199 201 1 203 93 3 103 73 53 202 200 2 -1 63 83 43 33 0 2 -198 4 -106 -196 -96 -126 -146 3 1 -197 Columns 31 through 46 -200 -136 -116 -156 -166 0 -200 2 -108 -198 -98 -128 -148 1 -1 -199 t = Columns 1 through 30 0 199 201 1 203 93 3 103 73 53 202 200 2 -1 63 83 43 33 0 2 -198 4 -106 -196 -96 -126 -146 3 1 -197 Columns 31 through 47 -200 -136 -116 -156 -166 0 -200 2 -108 -198 -98 -128 -148 1 -1 -199 -202 t = Columns 1 through 30 0 199 201 1 203 93 3 103 73 53 202 200 2 -1 63 83 43 33 0 2 -198 4 -106 -196 -96 -126 -146 3 1 -197 Columns 31 through 48 -200 -136 -116 -156 -166 0 -200 2 -108 -198 -98 -128 -148 1 -1 -199 -202 -138 t = Columns 1 through 30 0 199 201 1 203 93 3 103 73 53 202 200 2 -1 63 83 43 33 0 2 -198 4 -106 -196 -96 -126 -146 3 1 -197 Columns 31 through 49 -200 -136 -116 -156 -166 0 -200 2 -108 -198 -98 -128 -148 1 -1 -199 -202 -138 -118 t = Columns 1 through 30 0 199 201 1 203 93 3 103 73 53 202 200 2 -1 63 83 43 33 0 2 -198 4 -106 -196 -96 -126 -146 3 1 -197 Columns 31 through 50 -200 -136 -116 -156 -166 0 -200 2 -108 -198 -98 -128 -148 1 -1 -199 -202 -138 -118 -158 t = Columns 1 through 30 0 199 201 1 203 93 3 103 73 53 202 200 2 -1 63 83 43 33 0 2 -198 4 -106 -196 -96 -126 -146 3 1 -197 Columns 31 through 51 -200 -136 -116 -156 -166 0 -200 2 -108 -198 -98 -128 -148 1 -1 -199 -202 -138 -118 -158 -168 stride = 203 t = Columns 1 through 30 0 199 201 1 203 93 3 103 73 53 202 200 2 -1 63 83 43 33 0 2 -198 4 -106 -196 -96 -126 -146 3 1 -197 Columns 31 through 52 -200 -136 -116 -156 -166 0 -200 2 -108 -198 -98 -128 -148 1 -1 -199 -202 -138 -118 -158 -168 0 t = Columns 1 through 30 0 199 201 1 203 93 3 103 73 53 202 200 2 -1 63 83 43 33 0 2...

Assertion failed.

6   Fail
a = [7:17:302 primes(300)]; a = sort(a); stride = 17; assert(isequal(skip_sequence_stride(a),stride))

t = 0 t = 0 -1 t = 0 -1 -3 t = 0 -1 -3 -5 t = 0 -1 -3 -5 -5 t = 0 -1 -3 -5 -5 -9 t = 0 -1 -3 -5 -5 -9 -11 t = 0 -1 -3 -5 -5 -9 -11 -15 t = 0 -1 -3 -5 -5 -9 -11 -15 -17 t = 0 -1 -3 -5 -5 -9 -11 -15 -17 -21 t = 0 -1 -3 -5 -5 -9 -11 -15 -17 -21 -22 t = 0 -1 -3 -5 -5 -9 -11 -15 -17 -21 -22 -27 t = 0 -1 -3 -5 -5 -9 -11 -15 -17 -21 -22 -27 -29 t = 0 -1 -3 -5 -5 -9 -11 -15 -17 -21 -22 -27 -29 -35 t = 0 -1 -3 -5 -5 -9 -11 -15 -17 -21 -22 -27 -29 -35 -39 t = 0 -1 -3 -5 -5 -9 -11 -15 -17 -21 -22 -27 -29 -35 -39 -39 t = 0 -1 -3 -5 -5 -9 -11 -15 -17 -21 -22 -27 -29 -35 -39 -39 -41 t = 0 -1 -3 -5 -5 -9 -11 -15 -17 -21 -22 -27 -29 -35 -39 -39 -41 -45 t = 0 -1 -3 -5 -5 -9 -11 -15 -17 -21 -22 -27 -29 -35 -39 -39 -41 -45 -51 t = 0 -1 -3 -5 -5 -9 -11 -15 -17 -21 -22 -27 -29 -35 -39 -39 -41 -45 -51 -56 t = 0 -1 -3 -5 -5 -9 -11 -15 -17 -21 -22 -27 -29 -35 -39 -39 -41 -45 -51 -56 -57 t = 0 -1 -3 -5 -5 -9 -11 -15 -17 -21 -22 -27 -29 -35 -39 -39 -41 -45 -51 -56 -57 -59 t = 0 -1 -3 -5 -5 -9 -11 -15 -17 -21 -22 -27 -29 -35 -39 -39 -41 -45 -51 -56 -57 -59 -65 t = 0 -1 -3 -5 -5 -9 -11 -15 -17 -21 -22 -27 -29 -35 -39 -39 -41 -45 -51 -56 -57 -59 -65 -69 t = 0 -1 -3 -5 -5 -9 -11 -15 -17 -21 -22 -27 -29 -35 -39 -39 -41 -45 -51 -56 -57 -59 -65 -69 -71 t = 0 -1 -3 -5 -5 -9 -11 -15 -17 -21 -22 -27 -29 -35 -39 -39 -41 -45 -51 -56 -57 -59 -65 -69 -71 -73 t = 0 -1 -3 -5 -5 -9 -11 -15 -17 -21 -22 -27 -29 -35 -39 -39 -41 -45 -51 -56 -57 -59 -65 -69 -71 -73 -77 t = 0 -1 -3 -5 -5 -9 -11 -15 -17 -21 -22 -27 -29 -35 -39 -39 -41 -45 -51 -56 -57 -59 -65 -69 -71 -73 -77 -81 t = 0 -1 -3 -5 -5 -9 -11 -15 -17 -21 -22 -27 -29 -35 -39 -39 -41 -45 -51 -56 -57 -59 -65 -69 -71 -73 -77 -81 -87 t = 0 -1 -3 -5 -5 -9 -11 -15 -17 -21 -22 -27 -29 -35 -39 -39 -41 -45 -51 -56 -57 -59 -65 -69 -71 -73 -77 -81 -87 -90 t = Columns 1 through 30 0 -1 -3 -5 -5 -9 -11 -15 -17 -21 -22 -27 -29 -35 -39 -39 -41 -45 -51 -56 -57 -59 -65 -69 -71 -73 -77 -81 -87 -90 Column 31 -95 t = Columns 1 through 30 0 -1 -3 -5 -5 -9 -11 -15 -17 -21 -22 -27 -29 -35 -39 -39 -41 -45 -51 -56 -57 -59 -65 -69 -71 -73 -77 -81 -87 -90 Columns 31 through 32 -95 -99 t = Columns 1 through 30 0 -1 -3 -5 -5 -9 -11 -15 -17 -21 -22 -27 -29 -35 -39 -39 -41 -45 -51 -56 -57 -59 -65 -69 -71 -73 -77 -81 -87 -90 Columns 31 through 33 -95 -99 -101 t = Columns 1 through 30 0 -1 -3 -5 -5 -9 -11 -15 -17 -21 -22 -27 -29 -35 -39 -39 -41 -45 -51 -56 -57 -59 -65 -69 -71 -73 -77 -81 -87 -90 Columns 31 through 34 -95 -99 -101 -105 t = Columns 1 through 30 0 -1 -3 -5 -5 -9 -11 -15 -17 -21 -22 -27 -29 -35 -39 -39 -41 -45 -51 -56 -57 -59 -65 -69 -71 -73 -77 -81 -87 -90 Columns 31 through 35 -95 -99 -101 -105 -107 t = Columns 1 through 30 0 -1 -3 -5 -5 -9 -11 -15 -17 -21 -22 -27 -29 -35 -39 -39 -41 -45 -51 -56 -57 -59 -65 -69 -71 -73 -77 -81 -87 -90 Columns 31 through 36 -95 -99 -101 -105 -107 -107 t = Columns 1 through 30 0 -1 -3 -5 -5 -9 -11 -15 -17 -21 -22 -27 -29 -35 -39 -39 -41 -45 -51 -56 -57 -59 -65 -69 -71 -73 -77 -81 -87 -90 Columns 31 through 37 -95 -99 -101 -105 -107 -107 -111 t = Columns 1 through 30 0 -1 -3 -5 -5 -9 -11 -15 -17 -21 -22 -27 -29 -35 -39 -39 -41 -45 -51 -56 -57 -59 -65 -69 -71 -73 -77 -81 -87 -90 Columns 31 through 38 -95 -99 -101 -105 -107 -107 -111 -124 t = Columns 1 through 30 0 -1 -3 -5 -5 -9 -11 -15 -17 -21 -22 -27 -29 -35 -39 -39 -41 -45 -51 -56 -57 -59 -65 -69 -71 -73 -77 -81 -87 -90 Columns 31 through 39 -95 -99 -101 -105 -107 -107 -111 -124 -125 t = Columns 1 through 30 0 -1 -3 -5 -5 -9 -11 -15 -17 -21 -22 -27 -29 -35 -39 -39 -41 -45 -51 -56 -57 -59 -65 -69 -71 -73 -77 -81 -87 -90 Columns 31 through 40 -95 -99 -101 -105 -107 -107 -111 -124 -125 -129 t = Columns 1 through 30 0 -1 -3 -5 -5 -9 -11 -15 -17 -21 -22 -27 -29 -35 -39 -39 -41 -45 -51 -56 -57 -59 -65 -69 -71 -73 -77 -81 -87 -90 Columns 31 through 41 -95 -99 -101 -105 -107 -107 -111 -124 -125 -129 -135 t = Columns 1 through 30 0 -1 -3 -5 -5 -9 -11 -15 -17 -21 -22 -27 -29 -35 -39 -39 -41 -45 -51 -56 -57 -59 -65 -69 -71 -73 -77 -81 -87 -90 Columns 31 through 42 -95 -99 -101 -105 -107 -107 -111 -124 -125 -129 -135 -137 t = Columns 1 through 30 0 -1 -3 -5 -5 -9 -11 -15 -17 -21 -22 -27 -29 -35 -39 -39 -41 -45 -51 -56 -57 -59 -65 -69 -71 -73 -77 -81 -87 -90 Columns 31 through 43 -95 -99 -101 -105 -107 -107 -111 -124 -125 -129 -135 -137 -141 t = Columns 1 through 30 0 -1 -3 -5 -5 -9 -11 -15 -17 -21 -22 -27 -29 -35 -39 -39 -41 -45 -51 -56 -57 -59 -65 -69 -71 -73 -77 -81 -87 -90 Columns 31 through 44 -95 -99 -101 -105 -107 -107 -111 -124 -125 -129 -135 -137 -141 -147 t = Columns 1 through 30 0 -1 -3 -5 -5 -9 -11 -15 -17 -21 -22 -27 -29 -35 -39 -39 -41 -45 -51 -56 -57 -59 -65 -69 -71 -73 -77 -81 -87 -90 Columns 31 through 45 -95 -99 -101 -105 -107 -107 -111 -124 -125 -129 -135 -137 -141 -147 -149 t = Columns 1 through 30 0 -1 -3 -5 -5 -9 -11 -15 -17 -21 -22 -27 -29 -35 -39 -39 -41 -45 -51 -56 -57 -59 -65 -69 -71 -73 -77 -81 -87 -90 Columns 31 through 46 -95 -99 -101 -105 -107 -107 -111 -124 -125 -129 -135 -137 -141 -147 -149 -155 t = Columns 1 through 30 0 -1 -3 -5 -5 -9 -11 -15 -17 -21 -22 -27 -29 -35 -39 -39 -41 -45 -51 -56 -57 -59 -65 -69 -71 -73 -77 -81 -87 -90 Columns 31 through 47 -95 -99 -101 -105 -107 -107 -111 -124 -125 -129 -135 -137 -141 -147 -149 -155 -158 t = Columns 1 through 30 0 -1 -3 -5 -5 -9 -11 -15 -17 -21 -22 -27 -29 -35 -39 -39 -41 -45 -51 -56 -57 -59 -65 -69 -71 -73 -77 -81 -87 -90 Columns 31 through 48 -95 -99 -101 -105 -107 -107 -111 -124 -125 -129 -135 -137 -141 -147 -149 -155 -158 -161 t = Columns 1 through 30 0 -1 -3 -5 -5 -9 -11 -15 -17 -21 -22 -27 -29 -35 -39 -39 -41 -45 -51 -56 -57 -59 -65 -69 -71 -73 -77 -81 -87 -90 Columns 31 through 49 -95 -99 -101 -105 -107 -107 -111 -124 -125 -129 -135 -137 -141 -147 -149 -155 -158 -161 -165 t = Columns 1 through 30 0 -1 -3 -5 -5 -9 -11 -15 -17 -21 -22 -27 -29 -35 -39 -39 -41 -45 -51 -56 -57 -59 -65 -69 -71 -73 -77 -81 -87 -90 Columns 31 through 50 -95 -99 -101 -105 -107 -107 -111 -124 -125 -129 -135 -137 -141 -147 -149 -155 -158 -161 -165 -171 t = Columns 1 through 30 0 -1 -3 -5 -5 -9 -11 -15 -17 -21 -22 -27 -29 -35 -39 -39 -41 -45 -51 -56 -57 -59 -65 -69 -71 -73 -77 -81 -87 -90 Columns 31 through 51 -95 -99 -101 -105 -107 -107 -111 -124 -125 -129 -135 -137 -141 -147 -149 -155 -158 -161 -165 -171 -175 t = Columns 1 through 30 0 -1 -3 -5 -5 -9 -11 -15 -17 -21 -22 -27 -29 -35 -39 -39 -41 -45 -51 -56 -57 -59 -65 -69 -71 -73 -77 -81 -87 -90 Columns 31 through 52 -95 -99 -101 -105 -107 -107 -111 -124 -125 -129 -135 -137 -141 -147 -149 -155 -158 -161 -165 -171 -175 -177 t = Columns 1 through 30 0 -1 -3 -5 -5 -9 -11 -15 -17 -21 -22 -27 -29 -35 -39 -39 -41 -45 -51 -56 -57 -59 -65 -69 -71 -73 -77 -81 -87 ...

Assertion failed.