Complexity & Performance questions and answers
Big O, time and space trade-offs, and making code faster. Page 17 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 961-1020
- How can I determine what core a Java thread is running on?
- How can I distinguish between high- and low-performance cores/threads in C?
- How can I enrich a Convolutional Neural Network with meta information?
- How can I explicitly free memory in Python?
- How can I find a number which occurs an odd number of times in a SORTED array in On time?
- How can I find the maximum sum of a sub-sequence using dynamic programming?
- How can I find the shortest path between 100 moving targets? Live demo included.
- How can I find the time complexity of an algorithm?
- How can I get the sizes of the tables of a MySQL database?
- How can I implement two sort keys in Dynamo DB?
- How can I improve async data retrieval and caching?
- How can I improve this algorithm for solving a modified Postage Stamp puzzle?
- How can I induce long full GC pause in jvm application?
- How can I list all foreign keys referencing a given table in SQL Server?
- How can I make a weak protocol reference in 'pure' Swift without objc
- How can I measure the actual memory usage of an application or process?
- How can I measure the speed of code written in Java? AI algorithms
- How can I measure thread stack depth?
- How can i optimize MySQL's ORDER BY RAND function?
- How can I prevent synchronous continuations on a Task?
- How can I profile a multithread program in Python?
- How can I programmatically determine how to fit smaller boxes into a larger package?
- How can I read large text files line by line, without loading them into memory?
- How can I reduce the number of CPUs used by Tensorlfow/Keras?
- How can I remove all nil elements in a Swift array?
- How can I remove the platforms I do not need to compile for in .net MAUI?
- How can I run background tasks in React Native?
- How can I run Tensorflow on one single core?
- How can I solve 'ran out of gpu memory' in TensorFlow
- How can I speed up a topic model in R?
- How can I speed up deep learning on a non-NVIDIA setup?
- How can I speed up Python's 'unittest' on multicore machines?
- How can I speed up this Keras Attention computation?
- How can I split and trim a string into parts all on one line?
- How can I stop a running MySQL query?
- How can I suppress column header output for a single SQL statement?
- How can I time a code segment for testing performance with Pythons timeit?
- How can I use 100 of VRAM on a secondary GPU from a single process on windows 10?
- How can I use async to increase WinForms performance?
- How can one test time complexity experimentally?
- How can one use multi threading in PHP applications
- How can race conditions be useful?
- How can stdmake_heap be implemented while making at most 3N comparisons?
- How can stdvector access elements with huge gaps between them?
- How can the A algorithm be applied to the traveling salesman problem?
- How can this Java code be improved to find sub-string in a string?
- How can we modify almost any algorithm to have a good best-case running time?
- How can you compute a shortest addition chain for an arbitrary n 600 within one second?
- How can you determine how much disk space a particular MySQL table is taking up?
- How can you get the names of method parameters?
- How can you speed up Eclipse?
- How Client Side Timeout helps with Server resource exhaustion
- How costly is .NET reflection?
- How could I determine which AWS location is best for serving customers from a particular region?
- How did Firefox optimize this loop?
- How do I add indexes to MySQL tables?
- How do I add parallel computation to this example?
- How do I avoid capturing self in blocks when implementing an API?
- How do I choose an optimizer for my tensorflow model?
- How do I construct a functor for use with an algorithm like boost's brent_find_minima?

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