If searching a sorted List is O(log2 n) and searching a balanced BST is also O(log2 n), which one should I use assuming the following:
- Elements will be received unsorted and then sorted after all the elements are loaded
- No elements will be removed
Which should be used and why (Sorted List or Binary Search Tree)?
Thanks.