Question about complexity analysis in editorial solution


  • 0
    2

    In the editorial solution it says

    Time complexity : . A total of nodes need to be traversed. Here, represents the minimum number of nodes from the two given trees.

    shouldn't it be the maximum number of nodes from the two given trees? since if one of the nodes is null, then the new node will just get the non-null node's value?


Log in to reply
 

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