Computer Science, asked by svbangalkar111, 3 months ago

Next Greater Number

Given a number N (containing at most 10,000 digits). find the next greater number having the same digits it is guaranteed that the exists a next greater number having the same digits as N.

Input Specification

input1: the length of the String N
input2: the number N in the form of a string

Output Specification

Return the next greater name having the same digits as 'N' in the form of a sting

Answers

Answered by ashokpanipat
0

Answer:

given a number and containing at most 10000 digit next greater number having same digit it is projected is exist or next greater digit having the digit was an input the diffraction input 1 the length is output certification return to the next alien

Explanation:

10001

Answered by sudhirprnc95
0

644349769434943491348164

Similar questions