4 ms·
I think you're willfully missing the point - you don't have to implement an rb tree without the built in containers because the language comes with built in con
by sanderjd 14y ago
I think you're willfully missing the point - you don't have to implement an rb tree without the built in containers because the language comes with built in containers. Python doesn't need to be optimized for doing such things from scratch because hardly anybody ever needs to do such things from scratch.
- Chris_Newton 14y agoThe language comes with a small number of simple but widely applicable containers. That doesn’t negate dons’ point that if you need something other than those containers there is relatively poor support for defining your own.
- ComputerGuru 14y agoI don't get your point. In C++ "return std::set<int>" - there's your tree.