Skip to content

solve issue "debug3.cpp" #1

@Mastermind-sap

Description

@Mastermind-sap

You have tested the function with different inputs, but you found that it sometimes returns incorrect results. For example, when you enter {1, 2, 3, 4, 5}, the function returns 4 as expected, but when you enter {5, 5, 5, 5}, the function returns -2147483648 instead of 5.

solve the following issue .

NOTE : you can not change the logic of all code .
Try to fix with minimum changes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions