题目
题目

2025W Quiz 4

单项选择题

In a left-leaning red-black binary search tree (LLRBBST) with 64 nodes and two paths from the root to a null node P1 and P2, which of the following could be true?

查看解析

查看解析

标准答案
Please login to view
思路分析
This question asks which statement could be true in a left-leaning red-black binary search tree (LLRBBST) with 64 nodes and two root-to-null paths P1 and P2. First, note the important structural invariant of red-black trees that often carries over to LLRBBSTs: the black-height, i.e., the number of black links on any path from the root to a null leaf, must be the same for all root-to-null paths. Red links can appear along a path, but they do not contribute to the black-height, and the tree is organized so that red links lean left (no right-leaning red link) and there are constraints about consecutive red links. However, the provided......Login to view full explanation

登录即可查看完整答案

我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!