Coding Interview Questions

Reverse an array

Question: Given an array, print that array in reverse order. Example: Input : {5, 4, 3, 2, 1} Output : {1, 2, 3, 4, 5} Solution: We can solve…

Min Edit Distance

In this tutorial we shall solve min edit distance with help of DP. Problem statement: You are given 2 strings. You need to find min distance…

Egg Dropping Problem

In this tutorial we shall solve another classical DP problem. This problem is bit complex to understand. Hence first we shall solve this…