Hotel Reservation system such as Oyo, Trivago, Hotels.com etc is a really big project, considering different aspects of System Design. The main challenges included in that is to design HLD of the whole system which … Read More
Given two words word1 and word2, find the edit distance between word1 and word2 i.e. minimum number of operations required to convert word1 to word2.
You have the following 3 operations permitted on … Read More
Serialise Deserialise N-ary Tree : N-ary tree’s each node contains at-most N children. Serialise the tree means storing the tree in array or file maintaining tree’s exact structure. On the other hand Deserialise the tree … Read More
Problem : Printing intermediate Integers
User entered numbers are set into array.Intermediate integer of each pair of successive elements to be printed.
Input of 1st line is number of element in array,inputs of … Read More
Given two arrays A and B of equal size, you have to determine whether the following the sequence is possible or not.
Stickler thief and wants to loot money from a society of n houses placed in a line. He is a weird person and follows a rule while looting the houses and according to the rule … Read More
Trapping Rain Water or Water collected between towers : Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after … Read More
In SAP Interview, Questions are pretty simple and straight forward, easy to code but they ask you to write proper unit test cases and they check if you have handles all edge cases or not.… Read More