How to give incomplete tree as input?

  • 0

    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.


  • 0

    you can define as follow

Log in to reply

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