Algorithms questions and answers
Sorting, searching, recursion, graphs and dynamic programming. Page 1 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 1-60
- 0-1 Knapsack w/ partitioning constraints
- 0/1 knapsack with dependent item weight?
- 10 fold cross validation
- 1d Array - determine best container size with minimum waste
- 2-way Merge Sort and Merge Sort
- 2D Bin Packing Algorithm
- 3-Opt Local Search for TSP?
- 3 dimensional bin packing algorithms
- 3d array traversal originating from center
- 3D clustering Algorithm
- 3d Fenwick tree
- 3D symmetry search algorithm
- 500,000 street names - what data structure and to use to implement a fast search?
- 64/32-bit division on a processor with 32/16-bit division
- 66 puzzle algorithm
- 8-queen problem using Dynamic programming
- A-star algorithm
- A Admissible Heuristic for die rolling on grid
- A admissible heuristics on a grid with teleporters?
- A Algorithm for very large graphs, any thoughts on caching shortcuts?
- A algorithm not working properly
- A better algorithm to find the next palindrome of a number string
- A Cache Efficient Matrix Transpose Program?
- A cool algorithm to check a Sudoku field?
- A density based clustering library that takes distance matrix as input
- A divide-and-conquer algorithm for counting dominating points?
- A fast algorithm for creating a puzzle
- A fast algorithm for minimum spanning trees when edge lengths are constrained?
- A fast way to find an all zero answer
- A few implementation details for a Support-Vector Machine SVM
- A good algorithm similar to Levenshtein but weighted for Qwerty keyboards?
- A heuristic, overestimation/underestimation?
- A linear-time algorithm to find any vertex of a polygon visible from other vertex
- A Memory-Adaptive Merge Algorithm?
- A Onlogn algorithm to find the segment among nn segments with the lowest slope
- A Puzzle on PAXOS Algorithm for consensus
- A range intersection algorithm better than On?
- A simple algorithm for generating positive-semidefinite matrices
- A simple example for someone who wants to understand Dynamic Programming
- A simple example of a cache aware algorithm?
- A simple explanation of Naive Bayes Classification
- A simple explanation of Random Forest
- A star algorithm Distance heuristics
- A star algorithm using Heuristic value to act as Tie-breaker where nodes have identical F-values
- A two way minimum spanning tree of a directed graph
- A weighted version of random.choice
- About accuracy in recommendation system
- About bubble sort vs merge sort
- About distributed logical clock, Lamport Algorithm
- Absolute distance from various points in On
- Abstract syntax tree using the shunting yard algorithm
- Accuracy score of a Decision Tree Classifier
- Acessing Values only at certain indexes using iterators
- Adapting binary stacking example to multiclass
- Add two big numbers represented as linked lists without reversing the linked lists
- Adding bot turn costs to A search in pathfinding within a grid
- Adjacency list and graph
- Adjacent number algorithm grouper
- Admissible Heuristic Manhattan Distance
- Advanced Banner-Rotation Algorithms

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