Swift Compile Error

  • 1

    The Swift function signature returns a "Character", but when I correctly returns a "Character", the result indicates an error:

    Line 68: cannot convert value of type 'Character' to expected argument type 'Int8'

    As my program doesn't even have line 68, I have to guess it's some logic in OJ behind the scenes that is incorrectly expecting an Int8.


  • 0

    I had the same issue.

Log in to reply

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