Problem 2848. Digital Neighbourhood

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

Examples:

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

Solution Stats

40.8% Correct | 59.2% Incorrect
Last Solution submitted on Sep 04, 2024

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers71

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!