title: Depth vs Level of a Tree
body: <p>Are they the same thing?</p>
  <p>In this article <a href="http://typeocaml.com/2014/11/26/height-depth-and-level-of-a-tree/" rel="nofollow noreferrer">Height,Depth and Level of a Tree</a></p>
  <p><code>Depth</code> is defined as the number of edges from a node to the tree's root node while
  <code>Level</code> is defined as</p>
  <blockquote>
  <p>1 + the number of connections between the node and the root.&quot;</p>
  </blockquote>
  <p>or basically depth + 1</p>
  <p>and in this link</p>
  <blockquote>
  <p><a href="https://stackoverflow.com/questions/59151282/what-is-level-of-root-node-in-a-tree">What is level of root node in a tree?</a></p>
  </blockquote>
  <p>It is said that level can either start with 1 or 0 which makes it the same with depth if it starts with 0</p>
  <p>So which is which? If it is <code>1 + depth</code> then what is the use of adding 1?</p>