MathMatrix, algebraic, and combinatorial practice problems
Generate primes up to N
The popular Sieve of Eratosthenes algorithm that produces a list of primes quickly.
Quickly calculate the cube root of a number
Algorithm to calculate the cube root of a given number in constant time.
Implement a^{n} without multiplication or division
Learn how to implement the operation of raising a to the power of n using only addition.
Prime Time
For this challenge you will be determining if an argument is a prime number.
17542 solutions
Solution
Prime Mover
For this challenge you will be returning a certain prime number.
10514 solutions
Solution
Prime Checker
For this challenge you will determine if you can arrange a number to be a prime number.
4183 solutions
Solution
Kaprekars Constant
For this challenge you will determine when a specific sequence terminates.
11568 solutions
Solution
Approaching Fibonacci
This challenge will require knowledge of calculating the Fibonacci numbers.
772 solutions
Solution
Print the power set of a given set
Solution for printing all possible subsets of a given set.
Counting steps using recursion
Recursion is an important topic to understand when learning a language, so this tutorial provides a simple example.
Generate all balanced bracket combinations
Interesting question that asks you to print all combinations of pairs of brackets.
Step Walking
For this challenge you will determine how many different ways you can walk up a flight of stairs.
1534 solutions
Solution
Line Ordering
For this challenge you will be determining how to order people in a line.
363 solutions
Solution
Pascals Triangle
For this challenge you will determine the next number in a row from Pascal's triangle.
1066 solutions
Solution
Chessboard Traveling
This challenge will require knowledge of basic mathematical combinations.
5283 solutions
Solution
Matching Couples
This challenge will require knowledge of basic mathematical combinations.
987 solutions
Solution
Bracket Combinations
This challenge will require knowledge of basic mathematical combinations.
774 solutions
Solution
Print a matrix in spiral order
Solution for recursively printing a matrix in a spiral pattern.
Determinant of a matrix using Laplace expansion
Solution in JavaScript for how to calculate the determinant of a square matrix.
Optimal Assignments
For this challenge you will be optimally assigning tasks to a number of machines.
1180 solutions
Solution
Transitivity Relations
For this challenge you will determine whether or not a matrix is transitive.
835 solutions
Solution
RREF Matrix
This challenge will require knowledge of the Gaussian elimination process to produce a RREF matrix.
312 solutions
Solution
Symmetric Matrix
For this challenge you will determine whether a matrix is symmetric or not.
771 solutions
Solution
Matrix Determinant
For this challenge you will calculate the determinant of a square matrix.
530 solutions
Solution
Matrix Border
For this challenge you will be transposing rows and columns within an array.
564 solutions
Solution
Polynomial Expansion
This challenge will require knowledge of polynomial expansion.
792 solutions
Solution
Intersecting Lines
For this challenge you will be determining where two lines intersect in terms of Cartesian coordinates.
1093 solutions
Solution