Floyd-Warshall (all pairs shortest path) algorithm implementation.
Ali Hamdi Ali Fadel · @Ali Hamdi Ali Fadel
Ali Hamdi Ali Fadel · @AliOsm · about 3 years
Floyd-Warshall (all pairs shortest path) algorithm implementation.
Ali Hamdi Ali Fadel · @AliOsm · about 3 years
Return true if two number are relatively prime (co-prime), false otherwise.
Ali Hamdi Ali Fadel · @AliOsm · about 3 years
Crawl a web page and extract URLs from its HTML using naive loop implementation. Its running time is comparable or less than using URI.extract().
Ali Hamdi Ali Fadel · @AliOsm · about 3 years
Calculates N choose K, N! / (K! * (N - K)!), in a mathematical operations efficient way.
Ali Hamdi Ali Fadel · @AliOsm · about 3 years
Calculates the n-th Catalan number, (2N)! / (N! * (N + 1)!), in a mathematical operations efficient way.
Ali Hamdi Ali Fadel · @AliOsm · about 3 years
Calculates the n-th Fibonacci number iteratively.
Ali Hamdi Ali Fadel · @AliOsm · about 3 years
Takes a string and return true if it is a palindrome, false otherwise.