Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get the next largest number. #16

Open
sravanireddy1102 opened this issue Oct 1, 2021 · 4 comments
Open

Get the next largest number. #16

sravanireddy1102 opened this issue Oct 1, 2021 · 4 comments
Assignees
Labels
Algorithms Problem statements which deal with algorithms Beginner good first issue Good for newcomers Hacktoberfest

Comments

@sravanireddy1102
Copy link

sravanireddy1102 commented Oct 1, 2021

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.

@ikjot-2605 ikjot-2605 added Algorithms Problem statements which deal with algorithms Beginner good first issue Good for newcomers Hacktoberfest labels Oct 1, 2021
@khannakshat7
Copy link
Contributor

@ikjot-2605 Please assign it to me. I would like to work on it.

@sravanireddy1102
Copy link
Author

@ikjot-2605 Please assign this issue to @khannakshat7. Thank you.

@khannakshat7
Copy link
Contributor

@sravanireddy1102 Please review and merge the PR.

@khannakshat7
Copy link
Contributor

khannakshat7 commented Oct 1, 2021

@ikjot-2605 Please add Hacktoberfest topic in your repo.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Algorithms Problem statements which deal with algorithms Beginner good first issue Good for newcomers Hacktoberfest
Projects
None yet
Development

No branches or pull requests

3 participants