Complexity & Performance questions and answers
Big O, time and space trade-offs, and making code faster. Page 19 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 1081-1140
- How do I write a correct micro-benchmark in Java?
- How do I write LINQ's .Skip1000.Take100 in pure SQL?
- How do Monitored Training Sessions work?
- How do MySQL indexes work?
- How do we achieve substring-match under On time?
- How do you de-normalise?
- How do you determine the ideal buffer size when using FileInputStream?
- How do you make TensorFlow Keras fast with a TFRecord dataset?
- How do you make TensorFlow Keras fast with a TFRecord dataset?
- How do you prevent IDisposable from spreading to all your classes?
- How do you use a Bidirectional BFS to find the shortest path?
- How do you use freeze_graph.py in Tensorflow?
- How does a sorting network beat generic sorting algorithms?
- How does Distributed Shared Memory work in the presence of cache and registers?
- How does docker image size impact runtime characteristics?
- How does Git save space and is fast at the same time?
- How does heap compaction work quickly?
- How does Java Garbage Collection work with Circular References?
- How does Java makes use of multiple cores?
- How does MySQL process ORDER BY and LIMIT in a query?
- How does .NET framework allocate memory for OutOfMemoryException?
- How does one write efficient Dynamic Programming algorithms in Haskell?
- How does setting baselineAligned to false improve performance in LinearLayout?
- How does sorting a string in an array of strings and then sorting that array come out to be Oaslogalogs?
- How does TensorFlow calculate FLOPS?
- How does the epsilon hyperparameter affect tf.train.AdamOptimizer?
- How does the Hopcroft-Karp algorithm work?
- How does the JavaScript heap handle recursion
- How does the new Docker --squash work
- How does the storage backend influence Datomic?
- How does YugaBytes performance compare between Redis client and Postgres client for simple Key-Value schema?
- How efficient is locking an unlocked mutex? What is the cost of a mutex?
- How exactly does a XOR Linked list work?
- How exactly does tail recursion work?
- How expensive is the lock statement?
- How expensive is the lock statement?
- How faster is tensorflow-gpu with AVX and AVX2 compared with it without AVX and AVX2?
- How good is Java's UUID.randomUUID?
- How hard is this graph problem?
- How is 2D bin packing achieved programmatically?
- How is a minimum bottleneck spanning tree different from a minimum spanning tree?
- How is CPU usage calculated?
- How is dynamic programming different from greedy algorithms?
- How is Greedy Technique different from Exhaustive Search?
- How is Nesterov's Accelerated Gradient Descent implemented in Tensorflow?
- How is On log n different then Olog n?
- How is performance affected by an unused using directive?
- How is quick sort better at cache locality than mergesort?
- How is str.joiniterable method implemented in Python/ Linear time string concatenation
- How is tf.data.Dataset use optimised by tf.function in Tensorflow 2.0?
- How is the complexity of bucket sort is Onk if we implement buckets using linked lists?
- How is the complexity of PCA Ominp3,n3?
- How is the default max Java heap size determined?
- How is the java memory pool divided?
- How is the smooth dice loss differentiable?
- How is vectorvectorint heavier than vectorpairint,int?
- How ListView's recycling mechanism works
- How make this piece of Haskell code more concise?
- How many additional function calls does fibn require if LINE 3 is removed?
- How many FLOPs does tanh need?

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