Problem 2848. Digital Neighbourhood

Given a natural number reorder its digits to create another number, closest to the given one.


  • 123 gives 132,
  • 1 gives 10,
  • 1099 gives 991

Solution Stats

40.93% Correct | 59.07% Incorrect
Last Solution submitted on Jun 26, 2024

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers68

Suggested Problems

More from this Author40

Problem Tags

Community Treasure Hunt

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

Start Hunting!