Data Structures questions and answers
Arrays, maps, trees, heaps and how to pick between them. Page 19 of 20.
Data Structures & Algorithms practice on Codemia
Step through 300+ coding interview problems with animated visualisers that show the data structure changing as the code runs. The Blind 75 are free.
Answers 1081-1140
- Finding the largest subarray with equal number of 0's and 1's
- Finding the Longest Common Substring in a Large Data Set
- Finding the longest repeated substring without suffix arrays or suffix trees
- Finding the lowest unused unique id in a list
- Finding the maximum subsequence binary sets that have an equal number of 1s and 0s
- Finding the max/min value in an array of primitives using Java
- Finding the median of an unsorted array
- Finding the most tree-like hierarchy that explains the data
- Finding the n-degree neighborhood of a node
- Finding the position of the maximum element
- Finding the second highest number in array in Java
- Finding the second smallest number from the given list using divide-and-conquer
- Finding the total number of set-bits from 1 to n
- finding the width of a binary tree
- Finding three elements in an array whose sum is closest to a given number
- Finding translation and scale on two sets of points to get least square error in their distance?
- Finding two non-subsequent elements in array which sum is minimal
- Finding unique numbers from sorted array in less than On
- First occurrence in a binary search
- Flatten an Array of Arrays in Swift
- Flatten an irregular arbitrarily nested list of lists
- Flatten nested dictionaries, compressing keys
- Flattening a shallow list in Python
- Flip two-dimensional associative array in PHP
- foreach vs someList.ForEach
- Format y axis as percent
- Four color theorem Java implementation of U.S. map
- Frequency counts for unique values in a NumPy array
- from keras.backend.tensorflow_backend import set_session
- From list of integers, get number closest to a given value
- From ND to 1D arrays
- FutureWarning arrays to stack must be passed as a sequence type such as list or tuple. Support for non-sequence iterables is deprecated
- Game on the tree, cutting branch
- Generate a large random planar graph
- Generate a random integer from 0 to N-1 which is not in the list
- Generate all combinations from multiple lists
- generate all partitions of a set
- Generate an integer that is not among four billion given ones
- Generate Non-Degenerate Point Set in 2D - C
- Generate tree structure from csv
- Generating a random DAG
- Generating all combinations of elements in a single array in pairs
- Generating All Combinations of List n Levels Deep in Java
- Generating ids for a set of integers
- Generating strongly-connected, uniformly-distributed, random di-graphs
- Generating suffix tree of string S2..m from suffix tree of string S1..m
- Generator expressions vs. list comprehensions
- Generic C multidimensional iterators
- Generic List - moving an item within the list
- Get a random element in single direction linked list by one time traverse
- Get a random item from a JavaScript array
- Get adjacent elements in a two-dimensional array?
- Get an array of property values from an object array
- Get difference between two lists with Unique Entries
- Get exception description and stack trace which caused an exception, all as a string
- Get file's size from bytes array without saving to disc
- Get first element from a dictionary
- Get first key in a (possibly) associative array?
- Get first or last entry of a LinkedHashMap
- Get generic type of java.util.List

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