Math for Programmers questions and answers
Number theory, combinatorics and computational geometry. Page 19 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 1081-1140
- Random points inside a parallelogram
- Random walk around a central location in a limited area?
- Random weighted choice
- Randomly Generate Letters According to their Frequency of Use?
- Randomly selecting k different numbers in a range
- Rasterizing a 2D polygon
- Ray-box Intersection Theory
- Ray-triangle intersection
- Ray - Octree intersection algorithms
- Real world typo statistics?
- Rearrange a list of points to reach the shortest distance between them
- recalculate ray tracing/casting costs when changing size of rectangle
- Rectangle packing with constraints
- Rectangles Covering
- rectilinear polygon intersection
- Recursive-backtracking algorithm for solving the partitioning problem
- Recursive Karatsuba multiplication not working?
- Recursively print all permutations of a string Javascript
- Reduce number of points in line
- reduce_sum by certain dimension
- Reordering a list to maximize difference of adjacent elements
- Repeatedly removing the maximum average subarray
- Representing continuous probability distributions
- Resources of techniques use for collision detection in 2D?
- Reverse factorial
- Rotated rectangle rasterisation algorithm
- Rotating a point about another point 2D
- Round number to nearest integer
- Round to the nearest power of two
- Rounding to an arbitrary number of significant digits
- Rounding to nearest 100
- Rounding up to the nearest multiple of a number
- RuntimeError size mismatch m1 a x b, m2 c x d
- Scaling an iterative, bitwise algorithm to solve the Towers of Hanoi using X discs and Y towers
- Scikit-Learn Decision Tree Probability of prediction being a or b?
- Scikit-learn Ridge classifier extracting class probabilities
- search for interval overlap in list of intervals?
- Secret Santa - Generating 'valid' permutations
- Segmented Sieve of Eratosthenes?
- Select an element from a stream with uniform distributed probability
- Set of List of sets Cartesian products from graph corresponding to set of lists
- Set S of n numbers - have a subset with the probability of each element of S occuring in it equal
- Shortest distance between points algorithm
- Shortest path and sorting points in a 2-dimensional space
- Shortest path with even number of edges
- Show label probability/confidence in NLTK
- Shuffling a deck of cards
- Sieve optimization
- Sigmoid output - can it be interpreted as probability?
- Simple Linear Regression in Python
- Simple ranking algorithm
- Simpler way of sorting three numbers
- Simplified or smooth polygons that contain the original detailed polygon
- simplify expression k/mn
- Single Value Decomposition implementation C
- skew matrix algorithm
- Slow Sums Algorithm
- Smallest number that cannot be formed from sum of numbers from array
- Smallest number that is evenly divisible by all of the numbers from 1 to 20?
- Solving a cubic equation

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