Recently I have conversation with a colleague about what would be the optimal way to convert List to Map in Ja
I was looking for a tree or graph data structure in C# but I guess there isn't one provided. An Extensive
I am trying to construct a General tree. Are there any built-in data structures in Python to implement it?
Python includes the heapq module for min-heaps, but I need a max heap. What should I use for a max-heap imple
I'm interested: What is C#'s analog of std::pair in C++? I found System.Web.UI.Pair class, but I&apo
In a b-tree you can store both keys and data in the internal and leaf nodes, but in a b+ tree you have to stor
When should I use a dictionary, list or set? Are there scenarios that are more suited for each data type?
I'm trying to answer two questions in a definitive list: What are the underlying data structures used fo
Brief background: Many (most?) contemporary programming languages in widespread use have at least a handful of
This is a simple question from algorithms theory. The difference between them is that in one case you count nu
Can anyone please explain the difference between binary tree and binary search tree with an example?
Does anyone know how the built in dictionary type for python is implemented? My understanding is that it is s
A long time ago, I bought a data structures book off the bargain table for $1.25. In it, the explanation for
As made clear in update 3 on this answer, this notation: var hash = {}; hash[X] does not actually hash the ob
I use LINQ to Objects instructions on an ordered array. Which operations shouldn't I do to be sure the o
Why does the C++ STL not provide any "tree" containers, and what's the best thing to use instead? I want
Is there any way I can separate a List<SomeObject> into several separate lists of SomeObject, using the
Suppose we have two stacks and no other temporary variable. Is to possible to "construct" a queue data struct