Given two sequences, print the longest subsequence present in both of them.

Read More »I have 8 months of experience and I recently appeared for interview of Amazon for role of SDE-I.

Read More »Following questions have been asked in GATE CS 2014 exam.

Read More »Following questions have been asked in GATE CS 2014 exam.

Read More »Following questions have been asked in GATE CS 2014 exam.

Read More »I attended Expedia interview for SDE-II role. Here are the questions on each round.

Read More »Following are different ways to create a 2D array on heap (or dynamically allocate a 2D array).

Read More »Finding nth Fibonacci Number using Golden Ratio: We have discussed different methods to find nth Fibonacci Number.

Read More »Given an n x n matrix, where every row and column is sorted in non-decreasing order. Find the kth smallest element in the given 2D array.

Read More »Write a C function ftoa() that converts a given floating point number to string.

Read More »## Print a Binary Tree in Vertical Order | Set 2 (Hashmap based Method)

Leave a comment | Filed under TreesGiven a binary tree, print it vertically. The following example illustrates vertical order traversal.

Read More »A suffix array is a sorted array of all suffixes of a given string.

Read More »I appeared for yatra.com interview process. In each round, I have to discuss the problem with interviewer and to tell him my approach.

Read More »Given an array of 1s and 0s which has all 1s first followed by all 0s. Find the number of 0s. Count the number of zeroes in the given array.

Read More »