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.84% Correct | 59.16% Incorrect
Last Solution submitted on Apr 30, 2024

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers67

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!