name = 'depthBT/2' slug = 'find the depth of a binary tree' description = '''\

depthBT(T, D): D is the depth of the binary tree T.

?- depthBT(b(b(b(nil,4,nil),2,b(nil,6,nil)),1,nil), D).
  D = 3.
''' hint = {}