how to find the next number which has all different digits and greater than the given number N? Like if N=2000 then the answer is 2013. how to approach this problom.
next number
how to find the next number which has all different digits and greater than the given number N? Like if N=2000 then the answer is 2013. how to approach this problom.
| Rev. | Язык | Кто | Когда | Δ | Комментарий | |
|---|---|---|---|---|---|---|
| en2 |
|
vaps2012000 | 2021-02-01 13:50:45 | 21 | Tiny change: 'this problom.' -> 'this problem.\nwhere 1<=N<=10^16' | |
| en1 |
|
vaps2012000 | 2021-02-01 13:48:18 | 178 | Initial revision (published) |