int t = (tree.left == null) ? 0 : tree.left.Size;
Here: tree.left.Size refers to the nodes of the left branch of the tree.
But what does ? 0: tree.left.Size mean? Millions of thanks for your reply.
c*****s 发帖数: 214
2
t = a?b:c
equals to
if(a)
t=b;
else
t=c
【在 z****n 的大作中提到】 : int t = (tree.left == null) ? 0 : tree.left.Size; : Here: tree.left.Size refers to the nodes of the left branch of the tree. : But what does ? 0: tree.left.Size mean? Millions of thanks for your reply.