Problem 42323. With apologies to William Blake
Solution Stats
Problem Comments
-
3 Comments
Jean-Marie Sainthillier
on 22 Aug 2015
Always difficult with James.
goc3
on 18 Aug 2021
James is the master of deceptively difficult Cody problems.
Brandon
on 24 Apr 2023
Deceptively difficult indeed. Took me two wrong rabbit holes to even figure out what I was actually trying to do.
Of course, it would have helped a lot more if the test cases were better. 5 & 6 are the only useful ones till you realize 7 & 8 are practically giving you the answer.
Solution Comments
Show commentsProblem Recent Solvers62
Suggested Problems
-
Return the 3n+1 sequence for n
7734 Solvers
-
2423 Solvers
-
196 Solvers
-
Getting the indices from a vector
7866 Solvers
-
201 Solvers
More from this Author80
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!