Reverse digits of a number.

For example, return 321 for the input 123 .

The left-hand zeros can be discarded. For example, input 10 will return 1 .

Solution Stats

109 Solutions

76 Solvers

Last Solution submitted on Feb 27, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers76

Suggested Problems

More from this Author3

Community Treasure Hunt

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

Start Hunting!