题目
题目
单项选择题

The red-black tree below remains valid if the color of nodes _____ are changed.

查看解析

查看解析

标准答案
Please login to view
思路分析
The problem asks which node colors can be changed without violating the red-black tree properties, given a specific tree diagram (not provided here) and the answer listing 'Y, C, and D'. First, recall the core red-black properties that must hold for the tree to remain valid: the root must be black; red nodes cannot have red children (no two consecutive red links); every path from the root to a leaf (NIL) must contain the same number of black nodes (black-height); and all leaves are considered black; every node is either red......Login to view full explanation

登录即可查看完整答案

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

更多留学生实用工具

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