Are '\t' and '\n' considered whitespaces, besides ' '?


  • 1
    X

    Other characters such as '\t' and '\n' are also regarded as whitespaces according to 1 and 2. Many examples here, including mine, only consider ' ' as whitespace and are accepted. Why? Test cases do not contain these characters? If yes, should they?


Log in to reply
 

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