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

55.36% Correct | 44.64% Incorrect
Last Solution submitted on Mar 15, 2020

Problem Comments