Math for Programmers questions and answers
Number theory, combinatorics and computational geometry. Page 15 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 841-900
- Is 161803398 A 'Special' Number? Inside of Math.Random
- Is a list potentially divisible by another?
- is a non-decreasing sequence increasing?
- Is it better for a realtime multiplayer game server to send game statistics outbound via a socket or wait for an inbound socket connection?
- Is it possible to add a weight/probability to a node in graph theoryusing networkx
- Is it possible to find the number of triangles that can be formed from a list of lengths in better than n choose 3 time?
- Is it possible to get the original value of a number, after several multiplications with overflow?
- Is java.util.Random really that random? How can I generate 52 factorial possible sequences?
- Is kd-tree always balanced?
- Is Multiplying the Inverse Better or Worse?
- Is softmax used when only the most probable class will be used?
- Is there a better way to guess possible unknown variables without brute force than I am doing? Machine learning?
- Is there a fast, functional prime generator?
- Is there a function in Python which generates all the strings of length n over a given alphabet?
- Is there a math nCr function in Python?
- Is there a pseudo-random number generator simple enough to do in your head?
- Is there a sequence of swaps that would generate all possible permutations?
- Is there a simple algorithm that can determine if X is prime?
- Is there a way to find sum of digits of 100?
- Is there an algorithm for solving such projection reconstruction geometric problem?
- Is there an algorithm that can divide a number into three parts and have their totals match the original number?
- Is there an algorithm to determine contiguous colored regions in a grid?
- Is there an algorithm to find the nearest number with only small factors?
- Is there an algorithm to multiply square matrices in-place?
- Is there an efficient algorithm to generate a 2D concave hull?
- Is there an efficient algorithm to generate random points in general position in the plane?
- Is there an efficient way to count the number of intersections among a given set of line segments?
- Is there any algorithm for calculating area of a shape given co-ordinates that define the shape?
- Is there any fast method of matrix exponentiation?
- is there any way to get samples under each leaf of a decision tree?
- Is there general method to solve for a single unknown if the unknown variable changes?
- Is trigonometry computationally expensive?
- Iteratively compute the Cartesian product of an arbitrary number of sets
- Jacobian matrix computation for artificial neural networks
- Joining unordered line segments
- K-transformed permutations
- K mutually exclusive routes in a graph
- Kahan summation
- Karatsuba Algorithm without BigInteger usage
- Karatsuba Multiplication for unequal size, non-power-of-2 operands
- KL Divergence for two probability distributions in PyTorch
- Knapsack with continuous non distinct constraint
- Laderman''s 3x3 matrix multiplication with only 23 multiplications, is it worth it?
- Largest circle inside a non-convex polygon
- largest inscribed rectangle in arbitrary polygon
- Largest possible number of disjoint subsets in a set
- Largest rectangles in histogram
- Largest sum of upper-left quadrant of matrix that can be formed by reversing rows and columns
- Least common multiple for 3 or more numbers
- Least Common Multiple of an array values using Euclidean Algorithm
- Least number of perfect square numbers that sums upto n
- Lexicographic minimum permutation such that all adjacent letters are distinct
- Line clipping to arbitary 2D polygon
- Linear algebra application in Machine Learning
- Linear time algorithm for slicing stacked boxes
- List all possible combinations of k integers between 1...n n choose k
- List of 10 digit strings where every 4 digit substring is unique
- Listing all permutations of a string/integer
- Logarithm Algorithm
- Longest equally-spaced subsequence

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