Hi Richard, this problem is the same as this other one: http://www.mathworks.de/matlabcentral/cody/problems/1092-decimation
So I think there is an error on test case number 4 and 5... :-(
Really like this problem, btw i also got issues with those test cases
I made the Decimation problem referenced above, and I had problems with my test suite as well. Looks like we both would have been standing in the wrong spot in the circle... :-(
I thought I had the right solutions but was unsure. I searched for Josephus to see if this was a duplication, I will look at decimation.
Find the longest sequence of 1's in a binary sequence.
Who knows the last digit of pi?
03 - Matrix Variables 4
Rubik's Mini Cube: Solve Randomized Cube in 11 Moves or Less; Score is by Time (msec)
ismember: Enhanced Time Performance for 'rows' - Speed Scoring (90% savings)
GJam 2016 Rd1A: Rank and File (small)
Genome Sequence 003R: Sequence DNA of random positioned and flipped segments
GJam 2017 Kickstart: Leader (Small)
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office