Tag: data-structures

2855 Difference between append vs. extend list methods in Python 2008-10-31T05:55:36.407

1454 How do I sort a list of dictionaries by a value of the dictionary? 2008-09-16T14:27:47.470

1250 Why is Dictionary preferred over Hashtable? 2008-11-19T09:24:24.877

796 What are the lesser known but useful data structures? 2009-02-01T11:12:25.403

580 How do you implement a Stack and a Queue in JavaScript? 2009-10-19T18:15:53.917

531 How to check if a specific key is present in a hash or not? 2010-12-24T22:02:13.947

526 Graph visualization library in JavaScript 2008-08-10T04:07:52.423

450 How does a hash table work? 2009-04-08T15:48:59.690

436 Java tree data-structure? 2010-08-19T13:53:13.363

415 Simplest code for array intersection in javascript 2009-12-11T03:04:04.823

387 How to detect a loop in a linked list? 2010-04-18T17:08:53.630

356 How to implement a queue using two stacks? 2008-09-16T03:37:34.383

348 When should I use a List vs a LinkedList 2008-10-04T08:23:24.973

335 Split List into Sublists with LINQ 2009-01-07T02:43:22.107

312 Preserving order with LINQ 2008-10-15T12:20:13.293

310 Why should hash functions use a prime number modulus? 2009-07-17T19:30:04.560

291 How to Correctly Use Lists in R? 2010-01-12T17:08:50.060

287 What are the underlying data structures used for Redis? 2012-03-08T21:31:27.027

271 JavaScript Hashmap Equivalent 2008-12-15T12:56:50.853

252 What is C# analog of C++ std::pair? 2008-10-03T09:33:06.980

252 Differences between B trees and B+ trees 2009-05-15T18:42:14.047

233 Does VBA have Dictionary Structure? 2009-05-27T12:00:03.687

224 Why doesn't java.util.Set have get(int index)? 2009-04-20T19:19:40.460

221 Tree data structure in C# 2008-09-15T20:58:20.037

216 How are Python's Built In Dictionaries Implemented 2008-11-29T07:35:31.163

196 Priority queue in .Net 2008-09-19T14:43:54.277

193 .NET data structures: ArrayList, List, HashTable, Dictionary, SortedList, SortedDictionary -- Speed, memory, and when to use each? 2008-09-24T17:47:27.897

186 Why do we use arrays instead of other data structures? 2008-12-25T00:56:12.980

184 Skip List vs. Binary Search Tree 2008-11-02T04:39:55.603

180 Array versus linked-list 2008-10-03T13:35:53.110

179 What is the best way to implement nested dictionaries? 2009-03-11T17:09:21.560

170 lenses, fclabels, data-accessor - which library for structure access and mutation is better 2011-04-23T21:42:26.093

164 Java: How to convert List to Map 2010-11-09T20:39:32.193

158 How would you implement an LRU cache in Java? 2008-10-21T11:34:10.323

156 Why is std::map implemented as a red-black tree? 2011-03-13T08:33:58.577

151 How to avoid "too many parameters" problem in API design? 2011-06-04T21:01:08.177

144 What is the difference between a map and a dictionary? 2010-05-21T17:12:30.970

144 How does the HyperLogLog algorithm work? 2012-09-08T00:28:21.063

142 Has anyone actually implemented a Fibonacci-Heap efficiently? 2009-02-02T20:46:38.347

142 Test whether a list contains a specific value in Clojure 2010-07-14T18:42:59.870

141 How are multi-dimensional arrays formatted in memory? 2010-04-02T04:46:42.523

140 Why start an ArrayList with an initial capacity? 2013-03-15T10:41:06.127

137 Are there strongly-typed collections in Objective-C? 2009-05-11T15:27:22.350

135 How to implement a Map with multiple keys? 2009-05-04T22:07:39.117

135 What do I use for a max-heap implementation in Python? 2010-03-23T15:58:02.993

134 Given a string of a million numbers, return all repeating 3 digit numbers 2017-11-30T19:37:45.513

131 How do I create a Linked List Data Structure in Java? 2008-08-13T16:29:22.063

131 How do I instantiate a Queue object in java? 2011-01-07T15:02:18.013

130 How to implement a queue with three stacks? 2011-04-04T12:05:50.473

129 Implement Stack using Two Queues 2009-03-27T02:07:34.123

129 How can I implement a tree in Python? Are there any built in data structures in Python like in Java? 2010-03-01T18:24:27.257

128 Calculate size of Object in Java 2012-02-20T21:36:32.260

126 What would a "frozen dict" be? 2010-04-24T07:19:50.867

122 How Do I Choose Between a Hash Table and a Trie (Prefix Tree)? 2008-10-29T05:19:04.640

121 When should I use the HashSet<T> type? 2009-08-07T23:25:35.597

120 Split a collection into `n` parts with LINQ? 2009-01-13T07:14:34.560

120 Data structure for loaded dice? 2011-02-17T10:33:43.977

117 What is the best algorithm for checking if a number is prime? 2009-11-26T03:30:49.273

114 Why would anyone use set instead of unordered_set? 2009-08-28T22:42:21.920

112 Algorithm to find top 10 search terms 2010-07-15T22:40:42.333

111 Select Multiple Fields from List in Linq 2009-07-29T20:55:21.590

111 Why should I use Deque over Stack? 2012-09-21T05:38:04.733

110 How is set() implemented? 2010-10-16T14:39:00.887

109 How to determine if binary tree is balanced? 2009-04-13T01:58:06.673

109 How to reverse a singly linked list using only two pointers? 2009-11-26T04:34:25.527

109 How do I represent a hextile/hex grid in memory? 2009-12-03T09:11:14.153

108 design a stack such that getMinimum( ) should be O(1) 2009-03-26T09:29:17.827

105 Are duplicate keys allowed in the definition of binary search trees? 2008-11-19T03:45:21.520

105 How do I make and use a Queue in Objective-C? 2009-05-03T16:50:20.603

104 What's the best way of structuring data on firebase? 2013-05-07T14:10:01.390

103 Find kth smallest element in a binary search tree in Optimum way 2010-02-24T20:18:05.183

103 What's the difference between the data structure Tree and Graph? 2011-09-14T21:49:32.640

102 Under what circumstances are linked lists useful? 2010-03-11T22:30:52.973

99 Are there any open source C libraries with common data structures? 2009-03-21T00:59:13.353

98 Get "Value" property in IGrouping 2011-01-26T12:20:17.793

94 Reversing a linked list in Java, recursively 2008-12-10T01:51:58.620

93 Most efficient way to store thousand telephone numbers 2011-10-07T09:55:08.503

92 Quick Way to Implement Dictionary in C 2010-12-08T05:08:20.313

91 LinkedBlockingQueue vs ConcurrentLinkedQueue 2009-09-15T12:04:27.370

90 HashMap get/put complexity 2010-12-29T11:22:03.143

89 What does it mean for a data structure to be "intrusive"? 2011-02-15T13:22:09.573

88 Advantages of Binary Search Trees over Hash Tables 2010-11-08T22:06:50.920

88 Algorithms based on number base systems? 2011-03-18T18:49:25.023

87 Is there any way to enforce typing on NSArray, NSMutableArray, etc.? 2009-03-16T06:51:26.013

86 What is the advantage to using bloom filters? 2010-11-26T03:37:03.993

85 What is copy-on-write? 2009-03-10T04:27:26.317

85 Practical uses of different data structures 2009-10-08T16:46:23.013

83 When to choose RB tree, B-Tree or AVL tree? 2009-10-19T15:58:16.007

83 Data structure: insert, remove, contains, get random element, all at O(1) 2011-04-15T20:48:45.990

81 Sorted array list in Java 2010-10-27T09:12:58.870

80 Linq - SelectMany Confusion 2011-02-16T15:30:09.720

78 Objects vs arrays in Javascript for key/value pairs 2009-03-27T00:43:29.130

77 Why is there no Tree<T> class in .NET? 2009-06-02T21:44:25.863

77 Why does Dijkstra's algorithm use decrease-key? 2012-02-13T04:29:19.747

76 What is the difference between trie and radix trie data structures? 2013-02-05T12:58:52.857

75 When would I want to use a heap? 2009-04-14T20:18:16.457

75 Why can I define structures and classes within a function in C++? 2009-05-18T02:43:35.333

75 Check if two linked lists merge. If so, where? 2009-10-20T11:51:10.817

75 Difference between red-black trees and AVL trees 2013-04-27T23:02:13.697