Ad
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    The maximum input value is 12691 in Haskell. The 12691st Hamming number is 63-bit long so it does not overflow Int.

  • Custom User Avatar

    Haskell requies Integer result. However it will get compile error when define

    hamming:: Int -> Integer
    

    while only compilable when defining

    hamming :: Int -> Int
    

    however, it will centainly overflow the Int Range. Please fix this.