Data Structures questions and answers
Arrays, maps, trees, heaps and how to pick between them. Page 1 of 20.
Data Structures & Algorithms practice on Codemia
Step through 300 algorithm problems with animated visualisers that show the data structure changing as the code runs.
Answers 1-60
- 1d Array - determine best container size with minimum waste
- 2-way Merge Sort and Merge Sort
- 2D Segment/Quad Tree Explanation with C
- 3d array traversal originating from center
- 3d Fenwick tree
- 500,000 street names - what data structure and to use to implement a fast search?
- Create ArrayList from array
- How can I add new keys to a dictionary?
- How can I check if an object is an array?
- How do I check if a list is empty?
- How do I check if an array includes a value in JavaScript?
- How do I concatenate two lists in Python?
- How do I list all files of a directory?
- How do I make a flat list out of a list of lists?
- How do I sort a dictionary by value?
- How do I split a list into equally-sized chunks?
- How to iterate over a dictionary?
- Loop (for each) over an array in JavaScript
- Sort array of objects by string property value
- What and where are the stack and heap?
- A-star algorithm
- A Algorithm for very large graphs, any thoughts on caching shortcuts?
- A column-vector y was passed when a 1d array was expected
- A difference in style IDictionary vs Dictionary
- A divide-and-conquer algorithm for counting dominating points?
- A fast algorithm for minimum spanning trees when edge lengths are constrained?
- A fast array shift implementation in C?
- A Java collection of value pairs? (tuples?)
- A KeyValuePair in Java
- A Memory-Adaptive Merge Algorithm?
- A quick and easy way to join array elements with a separator (the opposite of split) in Java
- A two way minimum spanning tree of a directed graph
- About tensorflow graph what am I wrong with this program?
- Abstract syntax tree using the shunting yard algorithm
- Access an arbitrary element in a dictionary in Python
- Access multiple elements of list knowing their index
- Access nested dictionary items via a list of keys?
- Accessing a Dictionary.Keys Key through a numeric index
- Accessing class variables from a list comprehension in the class definition
- Accessing dict keys like an attribute?
- Accessing filename from file queue in Tensor Flow
- Accuracy score of a Decision Tree Classifier
- Add a new element to an array without specifying the index in Bash
- Add a new item to a dictionary in Python
- Add an element to an array in Swift
- Add list to set
- Add new item in existing array in c.net
- Add non existing element to array in DynamoDB
- Add single element to array in numpy
- Add two big numbers represented as linked lists without reversing the linked lists
- Add variables to tuple
- adding multiple entries to a HashMap at once in one statement
- Adding to an array asynchronously in Node.js
- Adjacency list and graph
- Advantage of depth first search over breadth first search or vice versa
- Advantages of SVM over decion trees and AdaBoost algorithm
- Aggregation of array data over a given dimension
- Algorithm- Sum of distances between every two nodes of a Binary Search Tree in On?
- Algorithm - finding starting index of array so that sum of elements stays 0
- algorithm - How to solve an arithmetic expression DAG?

Course
Intermediate
27 lessons
15 hours
DSA Fundamentals
Master algorithmic patterns and data structures through hands-on LeetCode-style problems - from arrays and hashing to dynamic programming and advanced graphs.
View the course