[Solved] Efficient way to add element to sorted datastructure [closed]
Most red black tree packages will have an “insert element” method. If you’re not using one already, it might be good to start. If you’re married to a red-black tree implementation that doesn’t have an insert element operation, it’d be a good idea to add such a method, possibly from some good red-black tree doc: … Read more