Skip to content

Wrong answer for an testcase (java) #1062

@Harsh-Wardhan-404

Description

@Harsh-Wardhan-404

https://github.com/Sunchit/Coding-Decoded/blob/master/August2022/Java/PoorPigs.java

The one liner ans in java seems to give wrong answer for following case:

Buckets = 125
minutesToDie = 1
minutesToTest = 4

expected o/p = 3
o/p = 4

Could someone explain why so?

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