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

41.05% Correct | 58.95% Incorrect
Last Solution submitted on Dec 26, 2023

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!