Are inputs mutable?


  • 0
    T

    When the specification for a problem includes an array or list or hash or similar data structure as input that is passed by reference, is it acceptable to modify that data structure or is it supposed to be treated as read only?


Log in to reply
 

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