How to find median from numbers array? This is quite the popular interview question. Ah, maths… Such a beautiful subject and so inter-related to computer science. Before we start thinking…

Today we are going to take a look at slightly mathematical problem: Find Whether a Number Can Be the Sum of Two Squares. Being asked this question, our first step,…

How to Find Two Primes Whose Sum is Equal to a Number N? I have been asked questions about primes in many, many interviews and this is definitely one of…

Today we are going to take a look at a fairly common interview question! How to Rotate a 2D Matrix by 90 Degrees in Java has a lot to do…

How to Find Duplicate Number From Continuous Array? I got asked this very question a long time ago at an on-site interview. It is supposed to be one of the…

How To Count Numbers Having Unique Digits In Java? This is a fairly simple looking question that gets used a lot in interviews. But although it looks simple, it has…

Today we will take a look at a simple question I was asked some years ago when interviewing for an internship! The question is called “Find Intersection Point of 2…

This is a question that comes quite often as a preliminary / phone interview question. How do we check if a binary tree is a BST in Java? In other…

FindĀ repeated 10 char sequences in DNA sampleĀ is just a modified version of Find all repeated substrings of size K, which is a pretty common question that gets asked in interviews.…

How would you Merge Multiple Sorted Lists of Strings into one list? I got asked this very question in an interview myself. And to my surprise I was not very…