开发者

algorithm for making a red black tree from a binary search tree

开发者 https://www.devze.com 2023-01-04 16:38 出处:网络
is there any clear algorithm that make a red black tree from a binary search tree? p开发者_StackOverflow社区lease help me thanksOne way to do it is traverse the nodes in the binary tree, and add each

is there any clear algorithm that make a red black tree from a binary search tree? p开发者_StackOverflow社区lease help me thanks


One way to do it is traverse the nodes in the binary tree, and add each one to a new red-black tree.

0

精彩评论

暂无评论...
验证码 换一张
取 消