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

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

Solution Stats

156 Solutions

95 Solvers

Last Solution submitted on Mar 24, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers95

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!