Skip to content

LEETCODE 179 problem solution #55

@kamal-nand

Description

@kamal-nand

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";
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions