Yelp Interview Question for Software Engineer Interns


Country: United States
Interview Type: Phone Interview




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

Assuming the server for yelp.com isn't in your local subnet and that you know the IP and MAC address of the gateway router:

You send a DNS packet (a UDP packet) to your DNS server, getting the mapping of the domain name "yelp.com" to an IP address. The MAC address of the link layer header of this packet is your gateway router, which then forwards this packet to your DNS server.
If your DNS server doesn't have a cached entry for "yelp.com", it will have to iteratively query the root nameserver, TLDs, and yelp's nameserver in order to get the mapping, which it then returns to you.
Now, you need to complete the TCP three-way handshake in order to establish a connection between your computer and yelp.com You send a TCP SYN packet,wait for a SYN ACK, then send an ACK packet.
Now you can get the content of "yelp.com". You send a HTTP GET request (under the TCP protocol), and wait for the HTTP responses from yelp.com. You may get several packets due to TCP segmentation.

Feel free to correct anything if you spot any mistakes.

- Anonymous December 28, 2014 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

On a higher level, you could talk about browser cookies, and the fact that the yelp.com server will (1) run some code like python to find information about your profile (2) which will eventually call into some database to get some information like how many friends, reviews, does this person have, whats his favorite location, etc (3) maybe to get your profile photo (if not already cached by the browser) will talk to some key value store to get photos, (like amazon AWS)

then you can ask the interviewer which part would he like more details on... I think its meant to be a conversation.

- Arjan July 29, 2015 | Flag Reply
Comment hidden because of low score. Click to expand.


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