Complexity & Performance questions and answers
Big O, time and space trade-offs, and making code faster. Page 20 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 1141-1200
- How to apply binary search Olog n on a sorted linked list?
- How to assign more memory to docker container
- How to auto scale Amazon DynamoDB throughput?
- How to avoid bottleneck performance?
- How to avoid data duplicates in ClickHouse
- How to avoid heap pointer spaghetti in dynamic graphs?
- How to avoid merging high cardinality sub-select aggregations on distributed tables
- How to avoid MySQL 'Deadlock found when trying to get lock; try restarting transaction
- How to build hybrid model of Random Forest and Particle Swarm Optimizer to find optimal discount of products?
- How to cache results of a Spring Data JPA query method without using query cache?
- how to calculate binary search complexity
- How to calculate bubble sort's time complexity
- How to calculate multiclass overall accuracy, sensitivity and specificity?
- How to calculate optimal batch size?
- How to calculate order big O for more complex algorithms eg quicksort
- How to calculate simple moving average faster in C?
- How to calculate the flops of a tensorflow model loaded from pb file
- How to calculate the space complexity of function?
- How to calculate time complexity of backtracking algorithm?
- How to change async method call to prevent forcing async up the call stack
- How to change edges' weight by designated rule?
- How to change max_allowed_packet size
- how to check both training/eval performances in tensorflow object_detection
- How to check if XGBoost uses the GPU
- How to choose an integer linear programming solver?
- How to choose the window size of CNN in deep learning?
- How to clear GPU memory occupied by zombie process if it's parent is init?
- How to clear GPU memory WITHOUT restarting runtime in Google Colaboratory Tensorflow
- How to clear out/delete tensors in tensorflow?
- How to clear react-native cache?
- How to code the maximum set packing algorithm?
- How to combine paths in Java?
- How to compare the performance of Android Apps written in Java and Xamarin C#? Anyway to check quantitative data (code & results)
- How to compress pointer ? eg. arbitrary bit pointer
- How to compute intersection of N sorted sets?
- How to compute the absolute minimum amount of changes to convert one sortorder into another?
- How to configure a fine tuned thread pool for futures?
- How to configure Apache Tika in a kube environment to obtain maximum throughput when parsing a massive number of documents?
- How to configure the slow query log in TiDB?
- How to consolidate date ranges in a list in C
- How to control GPU memory size with tf.estimator
- How to control memory while using Keras with tensorflow backend?
- How to convert a double to long without casting?
- How to convert a ListString into a comma separated string without iterating List explicitly
- How to Correctly handle Weak Self in Swift Blocks with Arguments
- How to count Multiply-Adds operations?
- How to count string num with limit memory?
- How to create a distributed system that performs a task and come to a consensus of result?
- How to create a good evaluation function for a game?
- How to Create a nested index in MongoDB?
- How to create the most compact mapping n → isprimen up to a limit N?
- How to deal with a slow SecureRandom generator?
- How to deal with Concurrency before you start coding
- How to deal with large2GB embedding lookup table in tensorflow?
- How to debug timeout failures made in Play?
- How to design a distributed write-heavy data store
- how to design a high performance distribution system with a shared resource?
- How to design key schema to have only one DynamoDB table per application?
- How to detect if the given graph has a cycle containing all of its nodes? Does the suggested algorithm have any flaws?
- How to determine if a linked list has a cycle using only two memory locations

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