[ ASSIGNMENT: ] Form The Largest
TASK : GivenĀ a number,Ā ReturnĀ The Maximum numberĀ could be formed from the digits of the number given. NOTE : - Only Positve numbersĀ passed to the method, numbers Contain digits [1:9] inclusive! - Digit DuplicationsĀ could occur, So alsoĀ consider it when forming the Largest. For Example :: 1. maxNumber(213) --> return (321) Explanation : AsĀ 321Ā isĀ The Maximum numberĀ could be formed from the digits of the numberĀ 213. 2. maxNumber(7389) --> return (9873) Explanation : AsĀ 9873Ā isĀ The Maximum numberĀ could be formed from the digits of the numberĀ 7389. 3. maxNumber(63729) --> return (97632) Explanation : AsĀ 97632Ā isĀ The Maximum numberĀ could be formed from the digits of the numberĀ 63729. HappyCodings!:-) https://code.sololearn.com/WB2MAg0h7qW4/?ref=app