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

57.14% Correct | 42.86% Incorrect
Last solution submitted on Jun 16, 2019

Problem Comments