How to give incomplete tree as input?


  • 0
    P

    I would like to test my solution against a custom input where the diameter does not pass through root. How to such an example as input? - the custom input option seems to be accepting only complete trees.

    asas


  • 0
    C

    you can define as follow
    [1,null,2,null,3,null,4]


Log in to reply
 

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