Top "Data-structures" questions

A data structure is a way of organizing data in a fashion that allows particular properties of that data to be queried and/or updated efficiently.

How to implement a queue using two stacks?

Suppose we have two stacks and no other temporary variable. Is to possible to "construct" a queue data structure using …

algorithm data-structures stack queue
Does VBA have Dictionary Structure?

Does VBA have dictionary structure? Like key<>value array?

vba dictionary data-structures vb6
How does a hash table work?

I'm looking for an explanation of how a hash table works - in plain English for a simpleton like me! …

data-structures hash hashtable modulo
How to create the most compact mapping n → isprime(n) up to a limit N?

Naturally, for bool isprime(number) there would be a data structure I could query. I define the best algorithm, to …

algorithm math data-structures primes
How to implement a Map with multiple keys?

I need a data structure which behaves like a Map, but uses multiple (differently-typed) keys to access its values. (Let's …

java data-structures
What is the difference between tree depth and height?

This is a simple question from algorithms theory. The difference between them is that in one case you count number …

algorithm data-structures tree nodes terminology
How to reverse a singly linked list using only two pointers?

I wonder if there exists some logic to reverse a singly-linked list using only two pointers. The following is used …

c algorithm data-structures linked-list singly-linked-list
How to convert SQL Query result to PANDAS Data Structure?

Any help on this problem will be greatly appreciated. So basically I want to run a query to my SQL …

python mysql data-structures pandas
What are the differences between B trees and B+ trees?

In a b-tree you can store both keys and data in the internal and leaf nodes, but in a b+ …

database data-structures
Does Java support structs?

Does Java have an analog of a C++ struct: struct Member { string FirstName; string LastName; int BirthYear; }; I need to …

java data-structures