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…
Posts tagged as “Interview question”
Write a method to find the zig zag tree traversal in a tree. I got asked this question once in an interview. Now I found a few solutions to this…
Hello again everyone! Been sometime since I wrote here. Today I wanted to take a peek at a simple Linked List problem – Swap Node Pairs. Took me a bout…
I was asked to write a simple merge-sort implementation as the initial warm-up part of an interview. (Meaning knowing how to implement merge-sort is a must-have requirement rather than an…
Today we are going to be visiting a very simple problem, which need some basic maths though. Given an integer, reverse it and return the reversed integer. Sample runs are:…
Today’s question is going to be a quick one. We want to find longest path in tree. What does Path mean in a Tree context? The Tree wikipedia page and…
Today we will take a look at a problem I personally got asked in an interview! It is called “Print all sets of factors”. Basically, we will try to write…
Today I finally decided to write down a dynamic programming question. It’s very cliche and gets asked a lot in interviews. Given two words we want to find the minimum…
Today, I wanted to take a look at a pretty common sorting technique. Indeed anyone with a Bachelor in CS is expected to know how to implement QuickSort in java…
Today I wanted to do a quick recursive problem that came to my attention. It took me about 20 mins to finalize this the way I wanted it… (5-10 too…