Yahoo Interview Question for Software Engineer / Developers


Country: United States
Interview Type: Phone Interview




Comment hidden because of low score. Click to expand.
2
of 2 vote

in this questions i would like to ask the interviewer about the type of keys and values and what operations are required.
then i will suggest the data structure.

- getjar.com/todotasklist my android app December 10, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

in this questions i would like to ask the interviewer about the type of keys and values and what operations are required.
then i will suggest the data structure.

- getjar.com/todotasklist my android app December 10, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

We can use Map.

- Bindu December 13, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

We can use hash map to achieve this. The time complexity to search a key would be O(1).

- Anonymous April 22, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

B-Tree with index?
Should I hold them all in memory?

- hytgbn February 01, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

1) distinct keys and distinct values -> hashing, have a good hash function to have minimum collision and in case of collision have chaining
2) non-distinct keys and distinct values -> Still hashing but hash table of relatively smaller size and if we know that the values are spread uniformly over the namespace/alphabet we can do bucketing.
3) non-distinct keys and non-distinct values -> Hashing, hash table of small size and another hash map for values <value,count> with count as number of times the value has occurred.

- Second Attempt February 17, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

1.Ask the purpose
2.State your assumption: mine is - It must be to cache data,esp rendered HTML from a DB
3.Propose the solution: memcache in my case.

- sagarjhobalia March 28, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

1.Ask the purpose
2.State your assumption: mine is - It must be to cache data,esp rendered HTML from a DB
3.Propose the solution: memcache in my case.

- sagarjhobalia March 28, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

1.Ask the purpose
2.State your assumption: mine is - It must be to cache data,esp rendered HTML from a DB
3.Propose the solution: memcache in my case.

- sagarjhobalia March 28, 2013 | Flag Reply


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More