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

LEETCODE 179 problem solution #55

Open
kamal-nand opened this issue Sep 18, 2024 · 0 comments
Open

LEETCODE 179 problem solution #55

kamal-nand opened this issue Sep 18, 2024 · 0 comments

Comments

@kamal-nand
Copy link

in the code provided by you, we need to add a test case in which if we are getting the largest number as "00", we need to print it only "0". And for that reason, we need to check one more condition in the very last i.e.,
if(result.charAt(0) == '0') {
return "0";
}

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