WebClub-NITK / WebClub-NITK/Hacktoberfest-2k21

Get the next largest number.

Open
#16 4 comments 0 reactions 1 assignee Claimed by @khannakshat7 View on GitHub
Algorithms Beginner good first issue Hacktoberfest
Dominant language
Jupyter Notebook
Stars
1
Forks
7
PR merge metrics
No merged PRs in 30d

Description

### Description:
Given a number n, find the smallest number that has same set of digits as n and is greater than n. If x is the greatest possible number with its set of digits, then print “not possible”.
ex:
Input: n = "1234"
Output: "1243"

Input: n = "4321"
Output: "Not Possible"

### Details
Technical Specification: Solution to the code in C, C++, Python, JavaScript is accepted.
Type of Issue: Single
Time Limit: 1 day (from the moment the issue has been assigned to someone)
### Directory Structure
Create a folder named "Greater-number" in the Algorithms folder and submit the code file.

Note
Please claim the issue first by commenting here before starting to work on it.
Once you are done with the task and have created a Pull Request, please tag @sravanireddy1102 to request a review.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.