Cody

Solution 1986876

Submitted on 23 Oct 2019 by Alexander Meyer Ströborg
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
x = [1 2 3 4 5 6 7 8 9]; y_correct = [7 8 9]; assert(isequal(your_fcn_name(x),y_correct))

t = [] t = 2 1 t = 2 1 5 2 t = 2 1 5 2 8 3 m = 8 i = 3 y = 7 8 9

2   Pass
x = [1 2 3]; y_correct = [1 2 3]; assert(isequal(your_fcn_name(x),y_correct))

t = [] t = 2 1 m = 2 i = 1 y = 1 2 3

3   Pass
x = [0 0 0]; y_correct = [0 0 0]; assert(isequal(your_fcn_name(x),y_correct))

t = [] t = 0 1 m = 0 i = 1 y = 0 0 0

4   Pass
x = [3 3 3 1 1 1 2 3 4]; y_correct = [3 3 3]; assert(isequal(your_fcn_name(x),y_correct))

t = [] t = 3 1 t = 3 1 1 2 t = 3 1 1 2 3 3 m = 3 i = 1 y = 3 3 3

5   Pass
x = 1000:-1:1; y_correct = [1000 999 998]; assert(isequal(your_fcn_name(x),y_correct))

t = [] t = 999 1 t = 999 1 996 2 t = 999 1 996 2 993 3 t = 999 1 996 2 993 3 990 4 t = 999 1 996 2 993 3 990 4 987 5 t = 999 1 996 2 993 3 990 4 987 5 984 6 t = 999 1 996 2 993 3 990 4 987 5 984 6 981 7 t = 999 1 996 2 993 3 990 4 987 5 984 6 981 7 978 8 t = 999 1 996 2 993 3 990 4 987 5 984 6 981 7 978 8 975 9 t = 999 1 996 2 993 3 990 4 987 5 984 6 981 7 978 8 975 9 972 10 t = 999 1 996 2 993 3 990 4 987 5 984 6 981 7 978 8 975 9 972 10 969 11 t = 999 1 996 2 993 3 990 4 987 5 984 6 981 7 978 8 975 9 972 10 969 11 966 12 t = 999 1 996 2 993 3 990 4 987 5 984 6 981 7 978 8 975 9 972 10 969 11 966 12 963 13 t = 999 1 996 2 993 3 990 4 987 5 984 6 981 7 978 8 975 9 972 10 969 11 966 12 963 13 960 14 t = 999 1 996 2 993 3 990 4 987 5 984 6 981 7 978 8 975 9 972 10 969 11 966 12 963 13 960 14 957 15 t = Columns 1 through 30 999 1 996 2 993 3 990 4 987 5 984 6 981 7 978 8 975 9 972 10 969 11 966 12 963 13 960 14 957 15 Columns 31 through 32 954 16 t = Columns 1 through 30 999 1 996 2 993 3 990 4 987 5 984 6 981 7 978 8 975 9 972 10 969 11 966 12 963 13 960 14 957 15 Columns 31 through 34 954 16 951 17 t = Columns 1 through 30 999 1 996 2 993 3 990 4 987 5 984 6 981 7 978 8 975 9 972 10 969 11 966 12 963 13 960 14 957 15 Columns 31 through 36 954 16 951 17 948 18 t = Columns 1 through 30 999 1 996 2 993 3 990 4 987 5 984 6 981 7 978 8 975 9 972 10 969 11 966 12 963 13 960 14 957 15 Columns 31 through 38 954 16 951 17 948 18 945 19 t = Columns 1 through 30 999 1 996 2 993 3 990 4 987 5 984 6 981 7 978 8 975 9 972 10 969 11 966 12 963 13 960 14 957 15 Columns 31 through 40 954 16 951 17 948 18 945 19 942 20 t = Columns 1 through 30 999 1 996 2 993 3 990 4 987 5 984 6 981 7 978 8 975 9 972 10 969 11 966 12 963 13 960 14 957 15 Columns 31 through 42 954 16 951 17 948 18 945 19 942 20 939 21 t = Columns 1 through 30 999 1 996 2 993 3 990 4 987 5 984 6 981 7 978 8 975 9 972 10 969 11 966 12 963 13 960 14 957 15 Columns 31 through 44 954 16 951 17 948 18 945 19 942 20 939 21 936 22 t = Columns 1 through 30 999 1 996 2 993 3 990 4 987 5 984 6 981 7 978 8 975 9 972 10 969 11 966 12 963 13 960 14 957 15 Columns 31 through 46 954 16 951 17 948 18 945 19 942 20 939 21 936 22 933 23 t = Columns 1 through 30 999 1 996 2 993 3 990 4 987 5 984 6 981 7 978 8 975 9 972 10 969 11 966 12 963 13 960 14 957 15 Columns 31 through 48 954 16 951 17 948 18 945 19 942 20 939 21 936 22 933 23 930 24 t = Columns 1 through 30 999 1 996 2 993 3 990 4 987 5 984 6 981 7 978 8 975 9 972 10 969 11 966 12 963 13 960 14 957 15 Columns 31 through 50 954 16 951 17 948 18 945 19 942 20 939 21 936 22 933 23 930 24 927 25 t = Columns 1 through 30 999 1 996 2 993 3 990 4 987 5 984 6 981 7 978 8 975 9 972 10 969 11 966 12 963 13 960 14 957 15 Columns 31 through 52 954 16 951 17 948 18 945 19 942 20 939 21 936 22 933 23 930 24 927 25 924 26 t = Columns 1 through 30 999 1 996 2 993 3 990 4 987 5 984 6 981 7 978 8 975 9 972 10 969 11 966 12 963 13 960 14 957 15 Columns 31 through 54 954 16 951 17 948 18 945 19 942 20 939 21 936 22 933 23 930 24 927 25 924 26 921 27 t = Columns 1 through 30 999 1 996 2 993 3 990 4 987 5 984 6 981 7 978 8 975 9 972 10 969 11 966 12 963 13 960 14 957 15 Columns 31 through 56 954 16 951 17 948 18 945 19 942 20 939 21 936 22 933 23 930 24 927 25 924 26 921 27 918 28 t = Columns 1 through 30 999 1 996 2 993 3 990 4 987 5 984 6 981 7 978 8 975 9 972 10 969 11 966 12 963 13 960 14 957 15 Columns 31 through 58 954 16 951 17 948 18 945 19 942 20 939 21 936 22 933 23 930 24 927 25 924 26 921 27 918 28 915 29 t = Columns 1 through 30 999 1 996 2 993 3 990 4 987 5 984 6 981 7 978 8 975 9 972 10 969 11 966 12 963 13 960 14 957 15 Columns 31 through 60 954 16 951 17 948 18 945 19 942 20 939 21 936 22 933 23 930 24 927 25 924 26 921 27 918 28 915 29 912 30 t = Columns 1 through 30 999 1 996 2 993 3 990 4 987 5 984 6 981 7 978 8 975 9 972 10 969 11 966 12 963 13 960 14 957 15 Columns 31 through 60 954 16 951 17 948 18 945 19 942 20 939 21 936 22 933 23 930 24 927 25 924 26 921 27 918 28 915 29 912 30 Columns 61 through 62 909 31 t = Columns 1 through 30 999 1 996 2 993 3 990 4 987 5 984 6 981 7 978 8 975 9 972 10 969 11 966 12 963 13 960 14 957 15 Columns 31 through 60 954 16 951 17 948 18 945 19 942 20 939 21 936 22 933 23 930 24 927 25 924 26 921 27 918 28 915 29 912 30 Columns 61 through 64 909 31 906 32 t = Columns 1 through 30 999 1 996 2 993 3 990 4 987 5 984 6 981 7 978 8 975 9 972 10 969 11 966 12 963 13 960 14 957 15 Columns 31 through 60 954 16 951 17 948 18 945 19 942 20 939 21 936 22 933 23 930 24 927 25 924 26 921 27 918 28 915 29 912 30 Columns 61 through 66 909 31 906 32 903 33 t = Columns 1 through 30 999 1 996 2 993 3 990 4 987 5 984 6 981 7 978 8 975 9 972 10 969 11 966 12 963 13 960 14 957 15 Columns 31 through 60 954 16 951 17 948 18 945 19 942 20 939 21 936 22 933 23 930 24 927 25 924 26 921 27 918 28 915 29 912 30 Columns 61 through 68 909 31 906 32 903 33 900 34 t = Columns 1 through 30 999 1 996 2 993 3 990 4 987 5 984 6 981 7 978 8 975 9 972 10 969 11 966 12 963 13 960 14 957 15 Columns 31 through 60 954 16 951 17 948 18 945 19 942 20 939 21 936 22 933 23 930 24 927 25 924 26 921 27 918 28 915 29 912 30 Columns 61 through 70 909 31 906 32 903 33 900 34 897 35 t = Columns 1 through 30 999 1 996 2 993 3 990 4 987 5 984 6 981 7 978 8 975 9 972 10 969 11 966 12 963 13 960 14 957 15 Columns 31 through 60 954 16 951 17 948 18 945 19 942 20 939 21 936 22 933 23 930 24 927 25 924 26 921 27 918 28 915 29 912 30 Columns 61 through 72 909 31 906 32 903 33 900 34 897 35 894 36 t = Columns 1 through 30 999 1 996 2 993 3 990 4 987 5 984 6 981 7 978 8 975 9 972 10 969 11 966 12 963 13 960 14 957 15 Columns 31 through 60 954 16 951 17 948 18 945 19 942 20 939 21 936 22 933 23 930 24 927 25 924 26 921 27 918 28 915 29 912 30 Columns 61 through 74 909 31 906 32 90...