Scala
Scala copied to clipboard
All Algorithms implemented in Scala
Add an option to allows binarySearch to returns insertion index similar to [java.util.Arrays.binarySearch](https://docs.oracle.com/javase/8/docs/api/java/util/Arrays.html#binarySearch-byte:A-byte-). This option is disable by default so it doesn't affect existing code.
…≤ i, j ≤ N, which is defined as |array[i] - array[j]| + |i - j|, where |x| denotes absolute value of x.
I would want to add a new directory/folder for the problems on Project Euler like Python is having it - https://github.com/TheAlgorithms/Python/tree/master/project_euler. I will add the code of all the problems...
Newtons method in scala
Pull Request for adding algorithms to convert an integer into decimal, octal, and binary number. Tests have been performed, and the scripts are included in this merge. Please let me...
PR for Adding algorithms to calculate Total Surface Area. I have added algorithms to calculate the surface area of different 3-Dimensional shapes. Tests have been performed and the scripts are...
PR for adding Simple Calculator I have added four simple mathematics formula to calculate the result from two numbers. Tests have been done and the scripts are added in this...
Pull Request for adding algorithms to calculate factorial I have added two ways to calculate the factorial of a number (Iterative way and Recursive way). Tests have been done and...