Digital Neighbourhood - MATLAB Cody - MATLAB Central

Problem 2848. Digital Neighbourhood

Difficulty:Rate

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.59% Correct | 59.41% Incorrect
Last Solution submitted on Dec 11, 2024

Problem Comments

Solution Comments

Show comments

Group

Project Euler II Image
Project Euler II
  • 12 Problems
  • 51 Finishers

Problem Recent Solvers71

Problem Tags

Community Treasure Hunt

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

Start Hunting!
Go to top of page