What are “marker for NULL pointers” in binary tree?
问题 I was going through this and this post about binary search tree implementation. I saw that a binary search tree is represented as (for example) : 1 5 7 10 40 50 I was trying to learn about the serialization or de-serialization of the same here. The blog post is making me crazy with those -1 s which they're calling markers for NULL pointers . And they're representing the tree as: 20 8 4 -1 -1 12 10 -1 -1 14 -1 -1 -1 Confusion What are those -1 s? My final goal is to store and read a binary