Reverse Integer - MATLAB Cody - MATLAB Central

Problem 60191. Reverse Integer

Difficulty:Rate
You are given an integer, reverse its digits. For negative integers, the sign should remain in the front.
For instance, 12340 should become 4321; -1203 becomes -3021.

Solution Stats

81.25% Correct | 18.75% Incorrect
Last Solution submitted on May 10, 2025

Problem Comments

Solution Comments

Show comments
PIVlab surpasses 100K all-time File Exchange downloads
During the past twelve months, PIVlab, a MATLAB Community Toolbox for particle...
4
8

Problem Recent Solvers12

Suggested Problems

More from this Author53

Problem Tags

Community Treasure Hunt

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

Start Hunting!