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

# Category: Data Structure / Algorithm / Interviews

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

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

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

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…

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

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

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