Name | Description | ReadMe |
---|---|---|
SievePrimesAlgorithm |
Find and Generate Prime numbers using Sieve's algorithm. | here |
NumOccurencesOfCharacters |
Find number of occurrences of different/particular character(s) in a string. | here |
Divisors |
Find number of divisors of the number of your choice. | here |
CheckPrime |
Check if a number is prime or not, efficiently. | here |
GetDivSquareSum |
Get sum of squares of divisors of a number efficiently. | here |
BinarySearch |
Search result for a number in an array of integers. | here |
MaxSubArraySum |
Find the maximum continuous sub array sum in a given array. | here |
FindMaxSubArrayProduct |
Find the maximum continuous sub array product in a given array of fixed length and no length constraint. | here |
Exponent |
Calculate exponents of natural numbers. | here |
FindPhrase |
Find number of occurrences of a smaller string in a bigger string. | here |
Find2DMatrixSum |
Find sum of 2d matrix with long and int return types. | here |
CountDistinctElements |
Returns the number of distinct elements in an integer array | here |
CountSorting |
Returns the sorted array after sorting via count sort algorithm | here |
MatrixMultiplication2D |
Returns the multiplied matrix (if possible or returns null) | here |
PerfectPowerAlgorithm |
Returns the root and the exponent in an array of size 2 for a given natural number n (or null) | here |
SearchWordInMatrix |
Returns if a word (string) exist in a 2D character array | here |
TwoSum |
Returns if two numbers in an array sum to a target | here |