Faulty test suite. The 'for v = 1:10' in problem 5 has a semicolon after it.
Nice problem, but its description could be improved. Adding a link like https://en.wikipedia.org/wiki/Single-elimination_tournament would help. Moreover I would add that at the first round competitor #1 plays against competitor #2, competitor #3 plays against competitor #4, ... and competitor #n-1 plays against competitor #n (no wrap around or modular arithmetic; or else there would be 2 possible starting configurations).
Find the longest sequence of 1's in a binary sequence.
3518 Solvers
3035 Solvers
Given an unsigned integer x, find the largest y by rearranging the bits in x
820 Solvers
1773 Solvers
60 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!