## Find the number of zeroes

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… 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… Read More »

Given a stream of characters, find the first non-repeating character from stream. You need to tell the first non-repeating character in O(1) time at any… Read More »

“Persistence is what got me this far”, says Prabha Satya, Yahoo!’s recent hire for Software Development. Lately Yahoo! is also actively hiring other than acquiring… Read More »

I would like to express my gratitude towards the GeeksforGeeks team, whose help saw me through to Amazon’s interview rounds and getting placed at Yahoo.… Read More »

Given three strings A, B and C. Write a function that checks whether C is an interleaving of A and B. C is said to… Read More »

Given a number n, write an efficient function to print all prime factors of n. For example, if the input number is 12, then output… Read More »

Given a number, find the next smallest palindrome larger than this number. For example, if the input number is “2 3 5 4 5”, the… Read More »

Hi, I am Saurav Biswas, from IIT Kharagpur, currently doing my PhD in Machine Learning in Germany. I got hired at Yahoo SDC, India, in… Read More »

First of all a big thanks to the geeksforgeeks team. It has been the biggest help in my preparation. Till 5th july i could not… Read More »

Following are the details of my Yahoo interviews. Date of Interviews: 28th July 2012 No of Rounds: 1 aptitude test, 1 lab test, 2 technical… Read More »

Given that integers are read from a data stream. Find median of elements read so for in efficient way. For simplicity assume there are no… Read More »

Original Linked List Result Linked List 1 Result Linked List 2 If there are odd number of nodes, then first list should contain one extra.… Read More »

Given an array of positive numbers, find the maximum sum of a subsequence with the constraint that no 2 numbers in the sequence should be… Read More »