Data Structures questions and answers
Arrays, maps, trees, heaps and how to pick between them. Page 2 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 61-120
- algorithm - Sort an array with LogLogN distinct elements
- Algorithm design to assign nodes to graphs
- Algorithm efficient way to remove duplicate integers from an array
- Algorithm find connections between towns with a limit of train changes
- Algorithm Find minimum sum of k numbers from n arraysqueues
- Algorithm for 2-Satisfiability problem
- Algorithm for deleting one element in an single linked list with O1 complexity
- Algorithm for detecting full loop when iterating over a list
- Algorithm for diameter of graph?
- Algorithm for downsampling array of intervals
- Algorithm for finding a group of numbers in a list that equal a target
- Algorithm for finding a Hamiltonian Path in a DAG
- Algorithm for finding distinct paths from A to B in weighted, directed, cyclic graph
- Algorithm for finding path combinations?
- Algorithm for Finding Redundant Edges in a Graph or Tree
- Algorithm for finding symmetries of a tree
- Algorithm for maximum non-dominated set
- Algorithm for merging short lists into a long vector
- Algorithm for merging two max heaps?
- Algorithm for N-way merge
- Algorithm for nice graph labels for time/date axis?
- Algorithm for nice grid line intervals on a graph
- Algorithm for placing a grid over a disordered set of points
- Algorithm for Shuffling a Linked List in n log n time
- Algorithm for Tree Traversal
- algorithm gigantic number of very sparse bit arrays, which encoding to use
- Algorithm Printing the correct index for the character sequence
- Algorithm Question on File Search Indexing
- Algorithm that generates all contiguous subarrays
- Algorithm to detect when graph re-converges similar to common subtree?
- Algorithm to determine all possible ways a group of values can be removed from a sequence
- Algorithm to determine if array contains n...nm?
- Algorithm to determine the possibility of selecting 1 unique element from n arrays
- Algorithm to Divide a list of numbers into 2 equal sum lists
- Algorithm to efficiently determine the nn element in a matrix
- algorithm to enumerate all possible paths
- Algorithm to find a repeated number in a list that may contain any number of repeats
- Algorithm to find added/removed elements in an array
- Algorithm to find duplicate in an array
- Algorithm to find if there is any i so that arrayi equals i
- Algorithm to find if two sets of sets of numbers are isomorphic or not under permutation
- Algorithm to find k smallest numbers in array of n items
- Algorithm to find lowest common ancestor in directed acyclic graph?
- algorithm to find max independent set in a tree
- Algorithm to find maximum sum of elements in an array such that not more than k elements are adjacent
- Algorithm to find minimum spanning tree of chosen vertices
- Algorithm to find peaks in 2D array
- algorithm to find the largest area
- Algorithm to find the minimum number of rectangles covering certain elements in a 2d array
- Algorithm to find the total number of connected sets in a matrix
- Algorithm to find two repeated numbers in an array, without sorting
- Algorithm to find which number in a list sum up to a certain number
- Algorithm to generate spanning set
- Algorithm to group items in groups of 3
- Algorithm to implement non-binary trees using 1-dimensional vector?
- Algorithm to loop over an array from the middle outwards?
- Algorithm to match pairs from two sets
- Algorithm to merge multiple sorted sequences into one sorted sequence in C
- algorithm to parse string with dictionary
- Algorithm to print out a shuffled list, in-place and with O1 memory

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