hi
Covered negative shift this time
very straight forward solution that passes test suite but does not handle example in description correctly.
hello, what if shift >= 52 or shift < 0?
Does this work for negative shifts?
This is a sneaky way to get around the prohibition against using eval!
The Hitchhiker's Guide to MATLAB
2874 Solvers
Make a run-length companion vector
512 Solvers
Flag largest magnitude swings as they occur
582 Solvers
223 Solvers
393 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!