Had to use Int32 instead of Int in Swift

  • 0

    Input: "2147483648"
    my output was 2147483648 as I was using Int i.e. Int64
    but expected output was 2147483647.

    I tried with Int32.max and Int32.min and the solution was accepted.

Log in to reply

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.