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…
Posts tagged as “Interview Questions”
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…
How to generate all permutations of an array or string? This is quite the popular question in interviews… In fact, I personally got asked to generate all permutations of an…
Today, I took a look at this simple-looking problem. It’s mainly Bit Manipulation, where you need to find the number of bits required to change one Integer to another. In…
Today I wanted to discuss quickly a simple looking question regarding finding longest words containing given characters. This time we are not dealing with a very tech savvy guy, so…