Cody

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

53.33% Correct | 46.67% Incorrect
Last Solution submitted on Jul 08, 2020

Problem Comments