Math for Programmers questions and answers
Number theory, combinatorics and computational geometry. Page 14 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 781-840
- How to merge multiple rectangles into one polygon
- How to normalize a numpy array to a unit vector
- How to obtain the index permutation after the sorting
- How to order permutations so that at least 1 element in each permutation differs by exactly 1
- How to output all biconnected components of an undirected graph?
- How to permutate tranposition in tensorflow?
- How to print all possible balanced parentheses for an expression?
- How to prove max number of connection between n nodes is nn-1/2
- How to randomly choose sample points that maximize space occupation?
- How to randomly shuffle a list that has more permutations than the PRNG's period?
- How to reduce the number of points in a curve while preserving its overall shape?
- How to remove an edge from a half edge structure?
- How to round to nearest even integer?
- How to round up the result of integer division?
- How to sort a m x n matrix which has all its m rows sorted and n columns sorted?
- How to specify the prior probability for scikit-learn's Naive Bayes
- How to subsample a 2D polygon?
- How to tell if an array is a permutation in On?
- How to test if a kernel is a valid kernel
- How to turn integers into Fibonacci coding efficiently?
- How to update a matrix of probabilities
- How to write a probability algorithm that can be maintained easily?
- I need an optimal algorithm to find the largest divisor of a number N. Preferably in C or C
- Ideas for an algorithm for random distribution of circles in a square
- Ideas for physics for rolling dice
- Identifying points with the smallest Euclidean distance
- Implementing De Boors algorithm for finding points on a B-spline
- Implementing the Spigot algorithm for `π` pi
- in-place permutation of a array follows this rule
- In-place transposition of a matrix
- In a triangulated isometric grid, what triangle is a given point in?
- Incremental median computation with max memory efficiency
- Incremental price graph approximation
- incremental way of counting quantiles for large set of data
- Indexing ranked permutations into other ranked permutations
- Initializing Half-edge data structure from vertices
- Input Permutations in Feed-Forward Neural Networks
- Insert element into numpy array and get all rolled permutations
- Integer division algorithm
- Integer division How do you produce a double?
- Integer Partition algorithm and recursion
- Integer partition into sums and products
- Intersection between two rectangles in 3D
- Intersection of N rectangles
- Intersection of polygons
- Intersection of two convex polygons
- Inverting a 4x4 matrix
- 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 fast, functional prime generator?
- Is there a function in Python which generates all the strings of length n over a given alphabet?

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