# coding=utf-8 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(T, D)
D
T
?- depthBT(b(b(b(nil,4,nil),2,b(nil,6,nil)),1,nil), D). D = 3.