Solutions for given tasks using Scala FP
- Find out the last Nth element in a List.
- Find out the last Nth element in a List using a tail recursive solution.
- Determine whether a given number is prime or not.
- Determine whether two positive integer numbers are coprime. (Two numbers are coprime if their greatest common divisor equals 1)
- Define XOR operation for two logical expression.
- Define AND operation for two logical expression.
- Define NAND operation for two logical expression.
- Sieve of Eratosthenes algorithm
- Strassen Multiplication Algorithm