Cody

Problem 42085. Sum of digits of powers of 2

Solution 758331

Submitted on 11 Oct 2015 by Peng Liu
  • Size: 0
  • This is the leading solution.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
%% number = 1; assert(isequal(your_fcn_name(number),y))

y = 1 [Warning: Function toc has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] testSuiteResults = score: '0' testSuiteResults = score: '0' testSuiteResults = score: '0'

Suggested Problems

More from this Author2

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!