I tried solving this in MATLAB & it gave correct answer for the 3rd test suite also
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
assert(isequal(look_and_say([1]),[1 1]))
d =
1
|
2 | Pass |
assert(isequal(look_and_say([1 1 1 1 1]),[5 1]))
d =
1 2 3 4 5
|
3 | Fail |
assert(isequal(look_and_say([1 3 3 1 5 2 2]),[1 1 2 3 1 1 1 5 2 2]))
d =
1 4
d =
1 2
d =
1
d =
1 2
|
4 | Pass |
assert(isequal(look_and_say([8 6 7 5 3 0 9]),[1 8 1 6 1 7 1 5 1 3 1 0 1 9]))
d =
1
d =
1
d =
1
d =
1
d =
1
d =
1
d =
1
|
17116 Solvers
298 Solvers
Put two time series onto the same time basis
136 Solvers
Unique values without using UNIQUE function
115 Solvers
310 Solvers