Complexity & Performance questions and answers
Big O, time and space trade-offs, and making code faster. Page 13 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 721-780
- Fastest Integer Square Root in the least amount of instructions
- Fastest method for adding/summing the individual digit components of a number
- Fastest sort of fixed length 6 int array
- Fastest SVM implementation usable in Python
- Fastest way of finding the middle value of a triple?
- Fastest way to calculate a 128-bit integer modulo a 64-bit integer
- Fastest way to check if a value exists in a list
- Fastest way to determine the non-zero minimum
- Fastest way to find minimum distance of one point to points on a curve
- Fastest way to get the first object from a queryset in django?
- Fastest way to get the integer part of sqrtn?
- Fastest way to iterate over all the chars in a String
- Fastest way to reduce number of latitude and longitude points
- Fastest way to remove duplicate documents in mongodb
- Fastest way to search a number in a list of ranges
- Fastest way to search for an element in unsorted array
- Fastest way to serialize and deserialize .NET objects
- Fastest way to sort 10 numbers? numbers are 32 bit
- Fastest way to sort 32bit signed integer arrays in JavaScript?
- feature normalization- advantage of l2 normalization
- Fetch all rows in cassandra
- Field vs Property. Optimisation of performance
- Fill arbitrary 2D shape with given set of rectangles
- find a cost optimized path through a grid/matrix in c
- Find a median in parallel
- Find a median of N2 numbers having memory for N of them
- Find all possible substring in fastest way
- Find common elements from two very large Arrays
- Find duplicate element in array in time On
- Find duplicate in array with a memory efficient approach
- Find duplicates in an array, without using any extra space
- Find earliest time for k empty group
- Find existence of number in a sorted list in constant time? Interview question
- find if two arrays contain the same set of integers without extra space and faster than NlogN
- Find if vector contains pair with second element equal to X
- Find input that maximises output of a neural network using Keras and TensorFlow
- Find input that maximises output of a neural network using Keras and TensorFlow
- Find k-th minimum sum of every possible subset
- Find kth smallest element in a binary search tree in Optimum way
- find kth smallest number in Ologn time
- Find local minima in an array
- Find local minimum in n x n matrix in On time
- Find longest increasing sequence
- find median with minimum time in an array
- Find minimal Ai2 Bi2 when A and B are sorted
- Find minimum cost to convert array to arithmetic progression
- Find minimum number of iterations to reach a certain sum
- Find minimum number of operation of specific function
- Find most efficient groups of pairs
- Find most frequent value in SQL column
- Find number in sorted matrix Rows n Columns in Olog n
- Find number of bits to be flipped to get maximum 1's in array
- FInd overlapping appointments in On time?
- find path cross matrix with max sum forward then backward
- Find point which sum of distances to set of other points is minimal
- Find Shortest Binary String In Given Interval
- Find shortest subarray containing all elements
- Find simplest regular expression matching all given strings
- Find the best combination from a given set of multiple sets
- Find the biggest interval that has all its members in list in On

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