input is 10 --> 1010 output should be 3 --> 0011

input 23 --> 10111 output should be 15 --> 01111

Solution Stats

152 Solutions

93 Solvers

Last Solution submitted on Jan 04, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers93

Suggested Problems

More from this Author43

Community Treasure Hunt

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

Start Hunting!