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

Add Java Solution for Chewbacca's Digit Inversion Problem #2747

Open
Prathamesh-1011 opened this issue Oct 15, 2024 · 0 comments
Open

Add Java Solution for Chewbacca's Digit Inversion Problem #2747

Prathamesh-1011 opened this issue Oct 15, 2024 · 0 comments

Comments

@Prathamesh-1011
Copy link

Prathamesh-1011 commented Oct 15, 2024

Description:
This issue is for adding a Java solution to solve the problem where Chewbacca wants to minimize a number by inverting some of its digits. Inverting a digit involves replacing it with 9 - t (where t is the original digit), ensuring that the resulting number is the smallest possible positive number and does not contain leading zeros.

Problem Description:
Input: A single integer x (1 ≤ x ≤ 10^18).
Output: The smallest possible number after inverting some digits, without leading zeros.

Hello @DHEERAJHARODE , I am a Hactoberfest - 2024 contributer, I want to contribute the solution of the problem statement to this repository. Kindly assign this issue to me. Thank you! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant