Data Structures questions and answers
Arrays, maps, trees, heaps and how to pick between them. Page 20 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 1141-1200
- Get JavaScript object from array of objects by value of property
- Get key by value in dictionary
- Get keys from HashMap in Java
- Get last element of Stream/List in a one-liner
- Get lengths of a list in a jinja2 template
- Get list from pandas dataframe column or row?
- Get list of values for list of keys
- Get modulo from two 4x64bit integer arrays
- Get node list from random walk in networkX
- Get number of messages in an Amazon SQS Queue
- Get Object From Collection By Attribute
- Get only part of an Array in Java?
- Get replica set of the deployment
- Get the biggest chronological drop, min and max from an array with On
- Get the closest value for combinations of an array JS
- Get the first element of an array
- Get the first item from an iterable that matches a condition
- Get the full call stack trace of http calls
- Get the item that appears the most times in an array
- Get the key corresponding to the minimum value within a dictionary
- Get unique values from a list in python
- get vs. list in Kubernetes RBAC
- Getting a list of values from a list of dicts
- Getting a map to return a list in Python 3.x
- Getting a random value from a JavaScript array
- Getting an element from a Set
- Getting key with maximum value in dictionary?
- Getting mongodb primary node from crashed replica set
- Getting multiple keys of specified value of a generic Dictionary?
- Getting parent of a vertex in a perfect binary tree
- Getting the array length of a 2D array in Java
- Getting the difference between two sets
- Getting the index of the returned max or min item using max/min on a list
- Getting TypeError ''sliceNone, None, None, 0'' is an invalid key
- git - remote add origin vs remote set-url origin
- Git Difference between HEAD, working tree and index?
- Git Extensions Win32 error 487 Couldn''t reserve space for cygwin''s heap, Win32 error 0
- Given 2 sorted arrays of integers, find the nth largest number in sublinear time
- Given a 1 TB data set on disk with around 1 KB per data record, how can I find duplicates using 512 MB RAM and infinite disk space?
- Given a bitonic array and element x in the array, find the index of x in 2logn time
- Given a list of dictionaries, how can I eliminate duplicates of one key, and sort by another
- Given a list of numbers and a number k, return whether any two numbers from the list add up to k
- Given a node, how long will it take to burn the whole binary tree?
- Given a sorted array, can we build a sorted array of the sums of all pairs in On2?
- Given a sorted integer array, how may Binary Search trees can be formed from it?
- Given a tensor flow model graph, how to find the input node and output node names
- Given an array, can I find in On the longest range, whose endpoints are the greatest values in the range?
- Given an array, find out the next smaller element for each element
- Given an array of 0 and 1, find minimum no. of swaps to bring all 1s together only adjacent swaps allowed
- Given an array of integers, find the first missing positive integer in linear time and constant space
- Given an array of integers, find the pair of adjacent elements that has the largest product and return that product
- given an array of integers in random order you have to find the minimum number of swaps to convert it to cyclic sorted array
- Given an array of numbers, return array of products of all other numbers no division
- Given an array of positive and negative integers, re-arrange it so that you have positive integers on one end and negative integers on other
- Given an array V, we need to find two indices i,j such that Vj Vi and j - i is maximum
- Given an input array find all subarrays with given sum K
- Given an unsorted Array find maximum value of Aj - Ai where ji..in On time
- Given n-1n array, find missing number
- Given parallel lists, how can I sort one while permuting rearranging the other in the same way?
- Given that HashMaps in jdk1.6 and above cause problems with multithreading, how should I fix my code

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