parameters: (self, root)
return_statement: return 1 + (min(d) or max(d))
docstring: :type root: TreeNode
          :rtype: int
docstring_summary: :type root: TreeNode
          :rtype: int
docstring_tokens: : type root : TreeNode : rtype : int
function: def minDepth(self, root):
          """
          :type root: TreeNode
          :rtype: int
          """
          if not root:
              return 0
          d = map(self.minDepth, (root.left, root.right))
          return 1 + (min(d) or max(d))
function_tokens: def minDepth ( self , root ) : if not root : return 0 d = map ( self . minDepth , ( root . left , root . right ) ) return 1 + ( min ( d ) or max ( d ) )