Cody

Solution 2067533

Submitted on 23 Dec 2019 by Asif Newaz
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
vec = [ 10 2 3 89 5 7 90 0 12]; vNotch= [90 89 12 10 7 5 3 2 0 0 2 3 5 7 10 12 89 90]; assert(isequal(vNotchVector(vec),vNotch))

a = 90 89 12 10 7 5 3 2 0 b = 0 2 3 5 7 10 12 89 90 y = 90 89 12 10 7 5 3 2 0 0 2 3 5 7 10 12 89 90

3vx2ywdmh6obogoaogoaogoaogoaqboaqboaqboaqboaqboaqgyaqgyaqgyaqgaaqggaqggaqggaqggaqgggagcgagcgagcgagcgagcoggcoggcoggc8if8fnb674wze58maaaaasuvork5cyii="}]
2   Pass
vec = [ -8 -7 -6 -5 0 3 67 100 100 400]; vNotch= [400 100 100 67 3 0 -5 -6 -7 -8 -8 -7 -6 -5 0 3 67 100 100 400]; assert(isequal(vNotchVector(vec),vNotch))

a = 400 100 100 67 3 0 -5 -6 -7 -8 b = -8 -7 -6 -5 0 3 67 100 100 400 y = 400 100 100 67 3 0 -5 -6 -7 -8 -8 -7 -6 -5 0 3 67 100 100 400

Csol4uspqaaaabjru5erkjggg=="}]
3   Pass
vec= [1 0 1 0 1 0 1 0 1 0 1 0]; vNotch = [1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1]; assert(isequal(vNotchVector(vec),vNotch))

a = 1 1 1 1 1 1 0 0 0 0 0 0 b = 0 0 0 0 0 0 1 1 1 1 1 1 y = 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1

Fbgwagb9ydqdaagaasboaakwgaacraqbydqaavgmagnuaaga1aabydqdaagaasboaakwgaacraqbydqaavgmagnuaaga1aabydqdaagaasboaakwgaacraqdaagaavgmagnuaaga1aadehf8f2001+u6+1rgaaaaasuvork5cyii="}]