Does a call to shouldPrintMessage actually means print out the log once?


  • 0
    N

    I am trying to understand the question. It looks like shouldPrintMessage also should print out the log string that is passed in when the return value is true, correct? Otherwise how do we know when is log print? Please modify the question body because it is confusing.


  • 0
    J

    The return type of this function is "bool" , you only return "True" or "False".


Log in to reply
 

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