Math for Programmers questions and answers
Number theory, combinatorics and computational geometry. Page 11 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 601-660
- Given a permutation''s lexicographic number, is it possible to get any item in it in O1
- Given a set of points, how do I find the two points that are farthest from each other?
- Given a set of rectangles, do any overlap?
- Given a string of numbers and a number of multiplication operators, what is the highest number one can calculate?
- given an array of integers in random order you have to find the minimum number of swaps to convert it to cyclic sorted array
- Given boundaries, find interval
- Given n and k, return the kth permutation sequence
- Given parallel lists, how can I sort one while permuting rearranging the other in the same way?
- Given Prime Number N, Compute the Next Prime?
- Given some AABBs, find minimum total surface area AABBs that contain them all?
- Given two arrays, find the permutations that give closest distance between two arrays
- Given two lines on a plane, how to find integer points closest to their intersection?
- Go through all permutations of an array recursively
- Good algorithm for combining items from N lists into one with balanced distribution?
- Gram Schmidt with R
- Graph auto-layout algorithm
- Graph theory - force based autolayout algorithm
- Graph value propagation algorithm
- Greatest GCD between some numbers
- Greatest linear dimension 2d set of points
- Heap's algorithm for permutations
- Hexagonal Grids, how do you find which hexagon a point is in?
- Highest Valued Palindrome
- Hilbert sort by divide and conquer algorithm?
- How a sequence of numbers can be converted to a single number?
- How can a transform a polynomial to another coordinate system?
- How can I convert from degrees to radians?
- How can I convert from degrees to radians?
- How can I count how many horizontal brush strokes are required to draw an array of buildings?
- How can I create the cartesian product of a vector of vectors?
- How can I determine all possible ways a subsequence can be removed from a sequence?
- How can I find hole in a 2D matrix?
- How can I find the minimal circle include some given points?
- How can I find the number of Hamiltonian cycles in a complete undirected graph?
- How can I fit a Bézier curve to a set of data?
- How can I fit a curve to a 3d point cloud?
- How can I generate all permutations of an array in Perl?
- How can I interleave or create unique permutations of two strings without recursion
- How can I make an algorithm in C for finding variations of a set without repetition i.e. n elements, choose k?
- How can I match up permutations of a long list with a shorter list according to the length of the shorter list?
- How can I match up permutations of a long list with a shorter list according to the length of the shorter list?
- How can I print out all possible letter combinations a given phone number can represent?
- How can I programmatically determine how to fit smaller boxes into a larger package?
- How can I sort a coordinate list for a rectangle counterclockwise?
- How can I split a Polygon by a Line?
- How can I tell if a point belongs to a certain line?
- How can I tell if a point is nearby a certain line?
- How can I test if a point lies within a 3d shape with its surface defined by a point cloud?
- How can I test whether a number is a power of 2?
- How can you compute a shortest addition chain for an arbitrary n 600 within one second?
- How do I calculate a point on a circle’s circumference?
- How do I calculate the area of a 2d polygon?
- How do I check if a number is a palindrome?
- How do I determine whether my calculation of pi is accurate?
- How do I efficiently determine if a polygon is convex, non-convex or complex?
- How do I find a factorial?
- How do I find the next multiple of 10 of any integer?
- How do I generate a uniform random integer partition?
- How do I generate all permutations of a list?
- How do I generate all permutations of a list?

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