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

110 Solutions

77 Solvers

Last Solution submitted on May 28, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers77

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!