# System design | Back of envelop calculations for storage, memory, bandwidth, traffic etc.

During system design interviews, its a good idea to do some quick calculations with few assumptions to plan for scalability,…

# Compare files side by side and hightlight diff using Java | Apache Commons Text diff | Myers algorithm

In this article we will create a simple basic file diff tool/program using Apache commons text library & output diff…

# Introduction to String similarity and soundex | Algorithms comparison | Java Apache commons similarity and codec soundex examples

In this article we will get familiar with different ways to check if two strings are similar. ‘Being Similar’ is…

# Maths & Algebra for algorithms in computer science – A Refresher

Prime Number – Positive integer number (greater than 1) that can not be created by multiplying any other 2 Positive…

# Algorithms – Detect int addition/sum overflow or underflow

Overflow occurs when addition or sum of two int goes beyond limits of int i.e. Integer.MAX_VALUE i.e. 231-1. Java code…

# The Euclidean algorithm – Find GCD (Greatest common divisor) in Java

This article explains Euclidean algorithm from programming perspective. For Proof of Euclidean algorithm refer Wikipedia Problem Find GCD of 66 & 42…

# Algorithms – ‘Sieve of Eratosthenes’ – Find all primes numbers till n

Problem: If input is given n = 20, then print all primes numbers till 20. (Prime = Number which can…

# Algorithms – Addition without using arithmetic operators like +, ++ or Math methods

To perform addition without using + or ++ (or java.lang.Math class which internally uses +), we will have to perform…