Math for Programmers questions and answers
Number theory, combinatorics and computational geometry. Page 8 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 421-480
- Fastest algorithm to check if a number is pandigital?
- Fastest available algorithm for distance transform
- Fastest method for adding/summing the individual digit components of a number
- Fastest primality test
- Fastest way to determine if an integer's square root is an integer
- Fastest way to find minimum distance of one point to points on a curve
- Fastest way to generate binomial coefficients
- Fastest way to get the integer part of sqrtn?
- Fastest way to list all primes below N
- Fastest way to sample most numbers with minimum difference larger than a value from a Python list
- Fill 2D grid with single path
- Fill arbitrary 2D shape with given set of rectangles
- filling a rectilinear polygon with rectangles
- Filter a Set for Matching String Permutations
- Find a line connecting two faces of a cubic volume
- Find a number where it appears exactly N/2 times
- Find a period of eventually periodic sequence
- Find a prime number?
- Find all chordless cycles in an undirected graph
- Find all integer coordinates in a given radius
- Find all perfect squares that are a permutation of some 300 digits
- Find all permutations of 2 arrays in JS
- Find all subsets of length k in an array
- find all subsets that sum to a particular value
- Find all the 4 digit vampire numbers
- Find all the quadruples a, b, c, d where a3 b3 c3 d3 when 1 a, b, c or d 10000
- Find equidistant points between two coordinates
- find if 4 points on a plane form a rectangle?
- Find if a point is inside a convex hull for a set of points without computing the hull itself
- Find if any set is covered by member sets
- Find if point lies on line segment
- Find k-th minimum sum of every possible subset
- Find K nearest Points to Point P in 2-dimensional plane
- Find largest rectangle containing only zeros in an N×N binary matrix
- Find maximum possible time HHMM by permuting four given digits
- Find minimal Ai2 Bi2 when A and B are sorted
- Find most efficient groups of pairs
- Find next highest unique number from the given digits
- Find number of permutations of a given sequence of integers which yield the same binary search tree
- Find out which combinations of numbers in a set add up to a given total
- Find Pythagorean triplet for which a b c 1000
- Find rank of a decimal number based on function F N rank
- Find rectangles that contain point – Efficient Algorithm
- Find Second largest number in array at most nlog₂n−2 comparisons
- Find set of numbers in one collection that adds up to a number in another
- find smallest area that contains all the rectangles
- Find the best combination from a given set of multiple sets
- Find the centroid of a polygon with weighted vertices
- Find the Closest intersection point in plan
- Find the division remainder of a number
- Find the formula of this binary recurrence equation? fm,n fm-1,n fm,n-1
- Find the index of a given permutation in the sorted list of the permutations of a given string
- Find the kth digit after the decimal point of a fraction a/b with a,b,k being very large integers less than 10e18
- Find the kth eleven-non-free number
- Find the Kth least number for expression 2x3y5z
- Find the largest dense sub matrix in a large sparse matrix
- Find the maximum number of edges in the graph
- Find the most points enclosed in a fixed size circle
- Find the optimal clipped circle
- Find the shortest fence that encloses an area on a 2D grid

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