Help needed in this problem

Правка en1, от aya1909, 2020-10-30 19:10:29

given a number n, convert it into k such that k has all even digit with minimum no of operations. 1 operation is either increment or decrement n by 1.

example: Input 11 output -> 3 Input 199 output -> 1 Input 2018 output -> 2

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский aya1909 2020-10-30 19:10:29 267 Initial revision (published)