Skip to content

pyxploiter/Scala-Functional-Programming-Tasks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scala Functional Programming Tasks

Solutions for given tasks using Scala FP

Tasks List :

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