still trying to figure it out... did you use some combination of evalin('caller','cleanCellCode',...); evalin('caller','pass',...); in your evaluation suite? otherwise, care to provide a hint?
a hint: sin() may be appropriate for some input!!
guessed about overloading, but I am curious, how do you get those bits of code not showing up on your test suite? (also, unrelated, it is a strange world where cos(pi/4+pi/4)=1/sqrt(2)...)
or perhaps there is just some issue with the cody machinery today, some of the 'valid' solutions seem rather 'invalid', and the size computation just plain strange...
agreed
Actually, I like the problem, but don't understand this particular solution.
Number of 1s in the Binary Representation of a Number
362 Solvers
Sum all integers from 1 to 2^n
9041 Solvers
498 Solvers
Convert hex color specification to MATLAB RGB
148 Solvers
233 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!