What is the node path length of a node with 0 or 1 child?

(a) 1

(b) -1

(c) 0

(d) null

The query is from Heap in chapter Heap of Data Structures & Algorithms I

This question was addressed to me in an interview for internship.

What is the node path length of a node with 0 or 1 child?

(a) 1

(b) -1

(c) 0

(d) null

The query is from Heap in chapter Heap of Data Structures & Algorithms I

This question was addressed to me in an interview for internship.