The problem description says the output array elements can be in any order but the test cases seem to prefer some unknown order. Solution 682952 produces an array with same elements as the actual solution but the tests fail. Need a better description of the output desired or a more robust test suite.
Solution 682952 produces correct array, but doesn't pass it to the output.
awesome question
Good Problem :)
This (and others, including Solution 1444556) only pass because of a mismatch between the Test Suite and the Problem Statement.
Return the 3n+1 sequence for n
6167 Solvers
620 Solvers
Set some matrix elements to zero
290 Solvers
277 Solvers
Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock.
761 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!