## How to prepare for Facebook Hacker Cup?

Facebook hacker cup is an annual algorithmic programming contest organized by Facebook. Be it students, professionals or experts it attracts numerous programming enthusiasts from all… Read More »

## Largest subset whose all elements are Fibonacci numbers

Given an array with positive number the task is that we find largest subset from array that contain elements which are Fibonacci numbers. Asked in… Read More »

## Multiply Large Numbers represented as Strings

Given two numbers as strings. The numbers may be very large (may not fit in long long int), the task is to find product of… Read More »

## Given two unsorted arrays, find all pairs whose sum is x

Given two unsorted arrays of distinct elements, the task is to find all pairs from both arrays whose sum is equal to X. Examples: Input… Read More »

## Find all triplets with zero sum

Given an array of distinct elements. The task is to find triplets in the array whose sum is zero. Examples : Input : arr[] =… Read More »

## Boggle | Set 2 (Using Trie)

Given a dictionary, a method to do a lookup in the dictionary and a M x N board where every cell has one character. Find… Read More »

## Converting Decimal Number lying between 1 to 3999 to Roman Numerals

Given a number, find its corresponding Roman numeral. Examples: Input : 9 Output : IX Input : 40 Output : XL Input : 1904 Output… Read More »

## Find if string is K-Palindrome or not | Set 2

Given a string, find out if the string is K-Palindrome or not. A K-palindrome string transforms into a palindrome on removing at most k characters… Read More »

## Converting Roman Numerals to Decimal lying between 1 to 3999

Given a Romal numeral, the task is to find its corresponding decimal value. Example : Input: IX Output: 9 Input: XL Output: 40 Input: MCMIV… Read More »

## Inplace rotate square matrix by 90 degrees | Set 1

Given a square matrix, turn it by 90 degrees in anti-clockwise direction without using any extra space. Examples : Input: Matrix: 1 2 3 4… Read More »

## Find Minimum Depth of a Binary Tree

Given a binary tree, find its minimum depth. The minimum depth is the number of nodes along the shortest path from the root node down… Read More »

## Program to add two binary strings

Given two binary strings, return their sum (also a binary string). Example: Input: a = “11”, b = “1” Output: “100” We strongly recommend you… Read More »

## Look-and-Say Sequence

Find the n’th term in Look-and-say (Or Count and Say) Sequence. The look-and-say sequence is the sequence of below integers: 1, 11, 21, 1211, 111221,… Read More »

## [TopTalent.in] Exclusive Rapid Fire Interview with Deepali Who Got Into Facebook

Even if we were to search around the world, it would be a truly difficult job to find someone like Deepali. As a Computer Science… Read More »

## Facebook Interview | Set 2 (On Campus for Internship)

Recently facebook visited our campus. There was an online round first. 7 people were shortlisted for the telephonic interviews. And then there were 2 telephonic… Read More »