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 algorithm problems with animated visualisers that show the data structure changing as the code runs.
Answers 1021-1080
- 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?
- 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 an object in Python?
- 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 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 trim whitespace?
- How do I trim whitespace from a string?
- 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?

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