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 algorithm problems with animated visualisers that show the data structure changing as the code runs.
Answers 781-840
- How to get all subsets of a set? powerset
- How to get all the possible 3 letter permutations?
- How to get list of points inside a polygon in python?
- How to get mathemical PI constant in Swift
- How to get the Cartesian product of multiple lists
- How to implement range search in KD-Tree
- How to implement the Bayesian average algorithm for a binary rating system
- How to interpolate a line between two other lines in python
- How to invert a permutation array in numpy
- How to know if a binary number divides by 3?
- How to limit prediction probability to one class
- How to make a Wilson score interval that decreases by time
- 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

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