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

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

Solution Stats

154 Solutions

94 Solvers

Last Solution submitted on Feb 11, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers94

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!