Problem description for Python code


  • 3
    Y

    Problem description in the code below has some conflict with the original one.

    class Solution:
    # @param a, a string
    # @param b, a string
    # @return a boolean
    

    At first time, I was confused about 'return 0,-1,1' or 'return 'true or false'.......


  • 0
    T

    oh, sorry... the comment is wrong...

    this function should return int instead of bool.


  • 1
    S

    Sorry about it.

    We have updated the template of python. Thanks for pointing it out.


Log in to reply
 

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