Skip to content

Not accepted in leetCode #24

@wolf-dagger

Description

@wolf-dagger

According to leet code, the following test case does not pass with the following question

[[1,1,0,0,1,0,0,1,1,0],[1,0,0,1,0,1,1,1,1,1],[1,1,1,0,0,1,1,1,1,0],[0,1,1,1,0,1,1,1,1,1],[0,0,1,1,1,1,1,1,1,0],[1,1,1,1,1,1,0,1,1,1],[0,1,1,1,1,1,1,0,0,1],[1,1,1,1,1,0,0,1,1,1],[0,1,0,1,1,0,1,1,1,1],[1,1,1,0,1,0,1,1,1,1]]

the required output should be:

[[2,1,0,0,1,0,0,1,1,0],[1,0,0,1,0,1,1,2,2,1],[1,1,1,0,0,1,2,2,1,0],[0,1,2,1,0,1,2,3,2,1],[0,0,1,2,1,2,1,2,1,0],[1,1,2,3,2,1,0,1,1,1],[0,1,2,3,2,1,1,0,0,1],[1,2,1,2,1,0,0,1,1,2],[0,1,0,1,1,0,1,2,2,3],[1,2,1,0,1,0,1,2,3,4]]

but our output is :

[[-2147483647,-2147483648,0,0,1,0,0,-2147483634,-2147483633,0],[-2147483648,0,0,1,0,-2147483637,-2147483636,-2147483635,-2147483634,1],[-2147483647,-2147483646,-2147483645,0,0,-2147483638,-2147483637,-2147483636,-2147483635,0],[0,-2147483645,-2147483644,-2147483643,0,-2147483639,-2147483638,-2147483637,-2147483636,1],[0,0,-2147483643,-2147483642,-2147483641,-2147483640,-2147483639,-2147483638,-2147483637,0],[-2147483640,-2147483641,-2147483642,-2147483641,-2147483640,-2147483639,0,-2147483637,-2147483636,-2147483635],[0,-2147483640,-2147483641,-2147483640,-2147483639,-2147483638,-2147483637,0,0,-2147483634],[-2147483638,-2147483639,-2147483640,-2147483639,-2147483638,0,0,-2147483631,-2147483632,-2147483633],[0,1,0,-2147483638,-2147483637,0,-2147483629,-2147483630,-2147483631,-2147483632],[1,2,1,0,-2147483636,0,-2147483628,-2147483629,-2147483630,-2147483631]]

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