Yahoo Interview Questions
- 0of 0 votes
AnswersWhat is Hashing.
- devshree December 09, 2011 in United States| Report Duplicate | Flag | PURGE
Yahoo Software Engineer / Developer - 0of 0 votes
AnswersThere is external file with 5billion numbers..how will u sort
- devshree December 09, 2011 in United States
Wht if 1billion pairs?| Report Duplicate | Flag | PURGE
Yahoo Software Engineer / Developer - 0of 0 votes
AnswersHave 5million key-value pairs wht datastruct u will use?
- devshree December 09, 2011 in United States| Report Duplicate | Flag | PURGE
Yahoo Software Engineer / Developer - 0of 0 votes
AnswersWhat does public static void main means ..how it is called?
- devshree December 09, 2011 in United States| Report Duplicate | Flag | PURGE
Yahoo Software Engineer / Developer - 0of 0 votes
AnswersWht is oop and comparision with traditional method.
- devshree December 09, 2011 in India
Wht is abstraction?
Diff bet abstract class nd interface nd when u use one?| Report Duplicate | Flag | PURGE
Yahoo Software Engineer / Developer C++ - 0of 0 votes
AnswersA forgetful professor wants to know the names of all the students in a class of strength 'n'. For this, he makes 'm' students stand up at a time. He remembers the names of all the students who are standing and the ones who are sitting but doesn't remember the name of each student individually. He does this operation 'k' number of times and tries to infer all the names. What can be the value for 'k' when n=13 and m=5
- raju06261a1201 November 09, 2011 in India| Report Duplicate | Flag | PURGE
Yahoo Software Engineer / Developer - 0of 0 votes
AnswersGiven an arry Arr[N] of integers and a function int func(int x) that takes an integer and returns either 0 or 1 (depending on some property of the integer). Give the most efficient algorithm to store the numbers in the array in such a way that all numbers that return 1 should come before all numbers that return 0, when called upon by the function func
- devanharikumar89 October 23, 2011 in -| Report Duplicate | Flag | PURGE
Yahoo - 0of 0 votes
AnswersDesign an algorithm to sort an array whose first n-sqrt(n) elements are already sorted. What is the complexity of the algorithm.
- Anonymous August 15, 2011| Report Duplicate | Flag | PURGE
Yahoo Software Engineer / Developer Algorithm - 0of 0 votes
Answersyou have to do the queue operation when you have a single stack..for example:-suppose there is a telephone bill populating in a stack now you have to process each request in a fifo manner.you can perform only push pop operation and allocating extra memory is not allowed.
- jai vardhan July 06, 2011| Report Duplicate | Flag | PURGE
Yahoo Software Engineer / Developer Algorithm - 0of 0 votes
Answersfind missing numbersin given billion number.( numbers lie between 1-k)
- Adam Pandey June 29, 2011| Report Duplicate | Flag | PURGE
Yahoo Software Engineer / Developer - 0of 0 votes
AnswersSort 10 GB file using 2 GB memory. and complexity
- Adam Pandey June 29, 2011| Report Duplicate | Flag | PURGE
Yahoo Software Engineer / Developer - 0of 0 votes
AnswersSwap alternate nodes in a Singly linked List
- vinodjayachandran June 21, 2011| Report Duplicate | Flag | PURGE
Yahoo Software Engineer / Developer Algorithm - 0of 0 votes
AnswersGiven 2 Tree, find out if they r exactly same or not
- vinodjayachandran June 21, 2011| Report Duplicate | Flag | PURGE
Yahoo Software Engineer / Developer Algorithm - 0of 0 votes
AnswersGiven a graph of price variation of a stock over a period of 12 months, return the ideal time to buy and sell, for maximization of profit. Time duration is not constraint. Time duration needn't be minimum it can even be maximum 12 motnhs
- vinodjayachandran June 21, 2011| Report Duplicate | Flag | PURGE
Yahoo Software Engineer / Developer Algorithm - 0of 0 votes
AnswersHow to find the depth of a tree.
- vinodjayachandran June 21, 2011
Time and Memory optimization is emphasized| Report Duplicate | Flag | PURGE
Yahoo Software Engineer / Developer Algorithm - 0of 0 votes
AnswersFind the middle element in a singlely linked list and code it,
- vinodjayachandran June 21, 2011| Report Duplicate | Flag | PURGE
Yahoo Software Engineer / Developer Algorithm - 0of 0 votes
AnswersWhat are the various ways to swap 2 variables
- vinodjayachandran June 21, 2011
Answer :
a) Using temporary Variable
b) Usnig some Arithmentic operation
c) Using bitwise XOR operation
Which operation is better and Why ?| Report Duplicate | Flag | PURGE
Yahoo Software Engineer / Developer Algorithm - 0of 0 votes
AnswersGiven a file, return the Top 5 frequently occuring list of words
- vinodjayachandran June 21, 2011| Report Duplicate | Flag | PURGE
Yahoo Software Engineer / Developer Algorithm - 0of 0 votes
AnswersDesign a Chess Game
- vinodjayachandran June 21, 2011| Report Duplicate | Flag | PURGE
Yahoo Software Engineer / Developer Algorithm - 0of 0 votes
AnswersDesign Snake and Ladder Game
- vinodjayachandran June 21, 2011| Report Duplicate | Flag | PURGE
Yahoo Software Engineer / Developer Algorithm - 0of 0 votes
AnswersGiven a white background with a black random shape scattering around. Describe and code an algorithm to count the number of black shapes. You can assume input to be an array of 3xMxN in RGB color space.
- Ven April 06, 2011| Report Duplicate | Flag | PURGE
Yahoo Software Engineer / Developer Algorithm - 0of 0 votes
AnswersGiven one unsroted integer array, find out all the unique element in the array.
- Anonymous March 29, 2011
eg: Input: {23,53,1,3,6,23,1,7,9,53,9} Ouput;{3,6,7}
My solution:
Sort the array. Time: O(NlogN)
HashMap: Time: O(2N) Space: O(N)
Any improvement for this question?? Thanks.| Report Duplicate | Flag | PURGE
Yahoo Testing / Quality Assurance - 0of 0 votes
AnswersGiven an integer n , you have to print all the ways in which n can be represented as sum of positive integers
- tt February 15, 2011| Report Duplicate | Flag | PURGE
Yahoo Software Engineer / Developer - 0of 0 votes
Answerswrite a program to display the no. of 1,2,3,4...
- deveshbharathan January 28, 2011
lettered words in paragraph.
example:
1.search
2.engine
3.needs
4.to
5.fast
//output
search engine needs to be fast.
asked in interview ,though i didn't understand the purpose.| Report Duplicate | Flag | PURGE
Yahoo Software Engineer / Developer - 0of 0 votes
Answerscount the number of unique element in array of numbers in minimum time complexity.
- Anonymous January 28, 2011| Report Duplicate | Flag | PURGE
Yahoo Software Engineer / Developer - 2of 2 votes
AnswersGiven an array of length N. How will you find the minimum length
- abhishek October 19, 2010
contiguous sub - array of whose sum is S and whose product is P . Here
S and P will be given to you.
was asked in YAHOO CODING ROUND interview| Report Duplicate | Flag | PURGE
Yahoo Software Engineer / Developer Algorithm