Complexity & Performance questions and answers
Big O, time and space trade-offs, and making code faster. Page 18 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 1021-1080
- How do I correctly clean up a Python object?
- How do I create a memory bound message queue in Erlang?
- How do I declare an array of weak references in Swift?
- How do I defer or async this WordPress javascript snippet to load lastly for faster page load times?
- How do I determine the right number of Puma workers and threads to run on a Heroku Performance dyno?
- How do I determine the size of my array in C?
- How do I discover memory usage of my application in Android?
- How do I find which transaction is causing a Waiting for table metadata lock state?
- How do I get my program to sleep for 50 milliseconds?
- How do I get rid of some event never used compiler warnings in Visual Studio?
- How do I get the MAX row with a GROUP BY in LINQ query?
- How do I get time of a Python program's execution?
- How do I implement an Objective-C singleton that is compatible with ARC?
- How do I import local fonts async?
- How do I improve ASP.NET MVC application performance?
- How do I iterate through two lists in parallel?
- How do I keep track of the time the CPU is used vs the GPUs for deep learning?
- How do I know I've hit the threads limit defined in Node?
- How do I limit the number of rows returned by an Oracle query after ordering?
- How do I make the method return type generic?
- How do I make the return type of a method generic?
- How do I parallelize a simple Python loop?
- How do I pause my shell script for a second before continuing?
- How do I pick the most beneficial combination of items from a set of items?
- How do I prevent Eclipse from hanging on startup?
- How do I profile a Python script?
- How do I profile a tf.data.Dataset?
- How do I profile memory usage in Python?
- How do I query between two dates using MySQL?
- How do I replace weak references when using ARC and targeting iOS 4.0?
- How do I resize the UIImage to reduce upload image size
- How do I scale one rectangle to the maximum size possible within another rectangle?
- How do I search for a number in a 2d array sorted left to right and top to bottom?
- How do I select an entire row which has the largest ID in the table?
- How do I solve the INSTALL_FAILED_DEXOPT error?
- How do I sort a list of objects based on an attribute of the objects?
- How do I speed up the gwt compiler?
- How do I suspend painting for a control and its children?
- How do I time a method's execution in Java?
- How do I trim whitespace?
- How do I type hint a method with the type of the enclosing class?
- How do I use a dump file to diagnose a memory leak?
- How do I use TTL on clickhouse table?
- 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 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?

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