Math for Programmers questions and answers
Number theory, combinatorics and computational geometry. Page 18 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 1021-1080
- Permutations of binary number by swapping two bits not lexicographically
- Permutations of letters and numbers in a phone number
- Permutations via Heap's algorithm with a mystery comma
- Permutations without recursive function call
- Picking a random element from a set
- Picking unordered combinations from pools with overlap
- Placing 2D shapes in a rectangle efficiently. How to approach it?
- Planar Graph Layouts
- Point and ellipse rotated position test algorithm
- Point covering problem
- Point in Polygon Algorithm
- Point in polygon on Earth globe
- Polygon enclosing a set of points
- Polygon infill algorithm
- polygon union without holes
- Position N circles of different radii inside a larger circle without overlapping
- Possible multiplications of k distinct factors with largest possible factor n
- Possible permutations of BST's input
- Practical Uses of Fractals in Programming
- Predict classes or class probabilities?
- Predicting a Poisson process
- Predicting a probability of a sentence using tensorflow
- Predicting probabilities in classfier tensorflow
- Prefix sums weighted by a polynomial expression, can you do faster?
- Previous power of 2
- Prime Factorization
- Print all numbers whose nonzero digits are in ascending order
- Print all permutation in lexicographic order
- Print all unique combination of factors of a given number
- Printing all possible subsets of a list
- Probability and Neural Networks
- Probability distribution in Python
- Probability of collision when using a 32-bit hash
- Probability prediction method of KNeighborsClassifier returns only 0 and 1
- Probabilty based on quicksort partition
- Product of two Toeplitz matrices?
- Programming Contest Question Counting Polyominos
- Project Euler Problem 233
- Projected Gauss-Seidel for LCP
- Proof that Fowler's money allocation algorithm is correct
- Properly formatted multiplication table
- Prove a random generated number is uniform distributed
- Proving the primality of strong probable primes
- Pseudorandom Number Generator - Exponential Distribution
- Puzzle Find largest rectangle maximal rectangle problem
- puzzle N persons sitting on round table. No of ways of handshakes without crossing any other handshakes
- Puzzle Need an example of a complicated equivalence relation / partitioning that disallows sorting and/or hashing
- Python Inverse of a Matrix
- Python Numerical Integration for Volume of Region
- Python Ramer-Douglas-Peucker RDP algorithm with number of points instead of epsilon
- Quadrilateral Shape Finding Algorithm
- QuadTree find neighbor
- Ramer-Douglas-Peucker path simplification algorithm
- Random-first search?
- Random Forests - Probability Estimates scikit-learn specific
- Random Gaussian Variables
- Random number between 0 and 1?
- Random numbers between -1 and 1 summing to 0
- random permutation
- Random placement of non-overlapping intervals

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