collections c 23 vs c 2b 2b

Solutions on MaxInterview for collections c 23 vs c 2b 2b by the best coders in the world

showing results for - "collections c 23 vs c 2b 2b"
Simona
05 Sep 2018
1Array - C array, though the .NET Array can have a non-zero starting index.
2List<T> - std::vector<T>
3Dictionary<TKey, TValue> - unordered_map<Key, Data>
4HashSet<T> - unordered_set<Key>
5SortedDictionary<TKey, TValue> - std::map<Key, Data>
6SortedList<TKey, TValue> - equivalent to a std::vector<T> but keeping it ordered by using binary search + insert when adding elements.
7SortedSet<T> - std::set<Key>
8Queue<T> - std::queue<T>
9Stack<T> - std::stack<T>
10LinkedList<T> - std::list<T>